Andreas Schaefer created SLING-7174: ---------------------------------------
Summary: Using MockSlingHttpServletRequest for In-Sling Rendering fails when used with Export Servlet Key: SLING-7174 URL: https://issues.apache.org/jira/browse/SLING-7174 Project: Sling Issue Type: Bug Components: Servlets Environment: Sling 9, Java 1.8 Reporter: Andreas Schaefer When I use MockSlingHttpServletRequest with SlingRequestProcessor to render a page within sling then I will get an Unsupported Operation Exception when I hit the Export Servlet. The reason is that the Export Servlet is retrieving Request Reader in addScriptBindings(): bindings.put(READER, request.getReader()); In my opinion Sling should provide a Request / Response class for in-Sling rendering that is for that specific purpose as using that class for testing does clash with the the rendering. -- This message was sent by Atlassian JIRA (v6.4.14#64029)