Hi Francois, We have the backend (REST endpoints) and frontend (javascript, html) being served from the same Karaf instance yes. We're running an nginx instance in front of the demo servers, however I've experienced this connecting directly to Karaf, so I'm going to guess that doesn't affect anything!
Thanks, G On Sat, Feb 16, 2019 at 5:45 AM Francois Papon <francois.pa...@openobject.fr> wrote: > Hi Greg, > > You have webservices and webapp deployed in the same Karaf? > > Did you have an Apache Httpd proxy loadbalancer in front of Karaf? > > regards, > > François Papon > fpa...@apache.org > > Le 16/02/2019 à 10:00, Jean-Baptiste Onofré a écrit : > > Hi > > > > I don't think Karaf (Pax Web/Jetty) or CXF are doing this "redirection" > > by default. > > > > I have to take a look in opencast how CXF and Jetty is configured (maybe > > a redirect in jetty.xml). > > > > Regards > > JB > > > > On 15/02/2019 21:06, Greg Logan wrote: > >> Correct. For example, our demo server: > >> https://stable.opencast.org/info/501 returns (after logging in with the > >> provided credentials) a JSON blob of an ACL. There is no endpoint > >> /info/{int}. What's you're actually talking to > >> is https://stable.opencast.org/admin-ng/acl/501, which happens to take > a > >> single integer and be a GET request endpoint, and be alphabetically > >> first in our full list of endpoints :) > >> > >> G > >> > >> On Fri, Feb 15, 2019 at 1:58 PM Jean-Baptiste Onofré <j...@nanthrax.net > >> <mailto:j...@nanthrax.net>> wrote: > >> > >> Hi Greg, > >> > >> Do you have a simple test case to reproduce it ? > >> > >> To be sure I understand, when you try GET on > >> http://host:8181/cxf/info/10 you go to > >> http://host:8181/cxf/admin-ui/acl/10 ("cxf" part of the URL can be > >> different depending of the CXF cfg file) ? > >> > >> Regards > >> JB > >> > >> On 15/02/2019 20:47, Greg Logan wrote: > >> > Hi all, > >> > > >> > I'm from the Opencast project (opencast.org <http://opencast.org> > >> <http://opencast.org/>), > >> > which uses Karaf, and CXF among other frameworks. We're seeing an > >> issue > >> > where requests to a non-existent endpoint are being dispatched to > the > >> > alphabetically first endpoint which matches the request > >> parameters. For > >> > instance, GETting /info/{int}, which does not exist, gets you > >> > admin-ui/acl/{int}. > >> > > >> > I've run through the stack trace, and I think it's CXF, but my > mail on > >> > that list hasn't gotten any traction so I figured I would expand > my > >> > search. Is CXF what I'm looking for here? Or is it some other > >> part of > >> > Karaf? > >> > > >> > Thanks, > >> > G > >> > >> -- > >> Jean-Baptiste Onofré > >> jbono...@apache.org <mailto:jbono...@apache.org> > >> http://blog.nanthrax.net > >> Talend - http://www.talend.com > >> >