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

Felix Meschberger commented on FELIX-1979:
------------------------------------------

Oops, sorry, forgot the fixes to the test case. Commited in Rev. 902741.

The problem with the testcase was, that the getPathInfo() method was not mocked 
and thus null was returned instead of the expected value.

> ServletHandlerRequest.getPathInfo() returns undecoded string
> ------------------------------------------------------------
>
>                 Key: FELIX-1979
>                 URL: https://issues.apache.org/jira/browse/FELIX-1979
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.0.4
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: http-2.0.6
>
>         Attachments: FELIX-1979-2.patch, FELIX-1979.patch
>
>
> The Servlet API specifies the HttpServletRequest.getPathInfo() to return a 
> decoded path string.
> The current implementation just cuts off the servlet context and servlet 
> alias from the request URL (retrieved from 
> HttpServletRequest.getRequestURI()), which is not decoded. Therefore the 
> resulting path info is also not decoded and needs decoding.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to