[ https://issues.apache.org/jira/browse/FELIX-5219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15206026#comment-15206026 ]
Carsten Ziegeler commented on FELIX-5219: ----------------------------------------- I might be mistaken, but I think passing in the full mount path of the servlet into the http service might not work. Let's assume the proxy servlet is mounted at /foo - and /foo/bar is requested and there is a servlet registered at /bar in the http service. If you pass in the full path /foo/bar, the servlet does not match - I think we should write a test for this, to verify. I think the correct way of handling this is in the proxy servlet: if the servlet is not mounted at the root, this path is added to the context path, and servlet path is set to "", then the request is forwarded to the http service. This ensures that still the full path is available within the http service, but the matching still works. Example: webapp with proxy servlet has: context path: /webapp proxy servlet path: /foo request: /webapp/foo/bar Request passed into http service has: context path: /webapp/foo servlet path: "" request path info: /bar > Servlet Bridge does not work if not mounted as root servlet > ----------------------------------------------------------- > > Key: FELIX-5219 > URL: https://issues.apache.org/jira/browse/FELIX-5219 > Project: Felix > Issue Type: Bug > Components: HTTP Service > Affects Versions: http.proxy-3.0.0, http.bridge-3.0.0, http.bridge-3.0.2, > http.bridge-3.0.4, http.bridge-3.0.6 > Reporter: Anders Engström > Assignee: Carsten Ziegeler > Attachments: patch.txt > > > As described in the email thread > http://www.mail-archive.com/users%40felix.apache.org/msg17074.html -- the > Http Servlet Proxy/Bridge does not work when binding the Proxy Servlet > something else than {{/*}}. > It seems that the bug was introduced in the 3.* versions - the proxy/bridge > works as expected with version {{2.3.2}}. > I've created a reference project at > https://github.com/metamorph/http-osgi-bridge that demonstrates the bug. -- This message was sent by Atlassian JIRA (v6.3.4#6332)