[jira] [Updated] (SLING-5947) MockSlingHttpServletRequest used with SlingRequestProcessor causes UnsupportedOperationException

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Updated] (SLING-5947) MockSlingHttpServletRequest used with SlingRequestProcessor causes UnsupportedOperationException

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SLING-5947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seifert updated SLING-5947:
----------------------------------
    Fix Version/s: Servlet Helpers 1.0.2

backporting this ticket to 1.0.x version range of servlet helpers (in this case: 1.0.2) - which is compatible with sling mocks 1.x without updating to Servlet API 3.1 (which is part of servlet helpers 1.1.0).

> MockSlingHttpServletRequest used with SlingRequestProcessor causes UnsupportedOperationException
> ------------------------------------------------------------------------------------------------
>
>                 Key: SLING-5947
>                 URL: https://issues.apache.org/jira/browse/SLING-5947
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Servlet Helpers 1.0.0
>            Reporter: Dirk Rudolph
>            Assignee: Konrad Windszus
>             Fix For: Servlet Helpers 1.1.0, Servlet Helpers 1.0.2
>
>
> {{getServletPath()}} throws the UnsupportedOperationException in MockSlingHttpServletRequest
> http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/servlet-helpers/src/main/java/org/apache/sling/servlethelpers/MockSlingHttpServletRequest.java?revision=1728734&view=markup#l685
> It gets called from the SlingHttpServletRequestImpl constructor
> http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingHttpServletRequestImpl.java?view=markup#l71
> causing the following stacktrace:
> {code}
> Caused by: java.lang.UnsupportedOperationException: null
>         at org.apache.sling.servlethelpers.MockSlingHttpServletRequest.getServletPath(MockSlingHttpServletRequest.java:685)
>         at org.apache.sling.engine.impl.SlingHttpServletRequestImpl.<init>(SlingHttpServletRequestImpl.java:71)
>         at org.apache.sling.engine.impl.request.RequestData$1.createRequest(RequestData.java:700)
>         at org.apache.sling.engine.impl.request.RequestData.<init>(RequestData.java:215)
>         at org.apache.sling.engine.impl.SlingRequestProcessorImpl.doProcessRequest(SlingRequestProcessorImpl.java:121)
>         at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcessorImpl.java:247)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Loading...