Robert Munteanu created SLING-6947:
--------------------------------------

             Summary: MockHttpServletRequest incorrectly calculates pathInfo 
for path-bound servlets
                 Key: SLING-6947
                 URL: https://issues.apache.org/jira/browse/SLING-6947
             Project: Sling
          Issue Type: Bug
          Components: Testing
    Affects Versions: Servlet Helpers 1.1.0
            Reporter: Robert Munteanu


I have a servlet bound at /foo/bar . When invoked with the path /foor/bar/baz 
the path info is expected to be /baz.

Instead, 
{{org.apache.sling.servlethelpers.MockSlingHttpServletRequest#getPathInfo()}} 
seems to construct the full request path, including:

- the resource path
- the selector string
- the extension
- the suffix



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to