[ 
https://issues.apache.org/jira/browse/FELIX-5037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14747328#comment-14747328
 ] 

Carsten Ziegeler commented on FELIX-5037:
-----------------------------------------

The 3.0.2 version was not spec compliant, we fixed this with 3.1. From the 
spec: A string containing only the ’/’ character indicates the "default" 
servlet of the
application. In this case the servlet path is the request URI minus the context 
path
and the path info is null.

> HttpServletRequest.getPathInfo() always returns null for servlets registered 
> at "/"
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-5037
>                 URL: https://issues.apache.org/jira/browse/FELIX-5037
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http.jetty-3.1.0
>            Reporter: Marc Sluiter
>
> When I register a servlet with alias "/', request.getPathinfo() (in 
> doGet(request, response)) ALWAYS returns null. This does not happen with 
> http.jetty-3.0.2. When I debug into the servlet, I see that pathinfo of the 
> wrapped request is set correctly.
> I have a test project here: https://github.com/slintes/felixtest
> When you run MyTest.java as it is checked in, the test fails.
> When you change the http.jetty version to [3.0,3.1) in the itest's bnd file, 
> the test is successfull.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to