[ 
https://issues.apache.org/jira/browse/SLING-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576061#action_12576061
 ] 

Bertrand Delacretaz commented on SLING-310:
-------------------------------------------

Here's the list of tests that fail when this problem occurs:

Failed tests: 
  
testTextNoExt(org.apache.sling.launchpad.webapp.integrationtest.PropertyRenderingTest)
  
testResourceTypeNoExt(org.apache.sling.launchpad.webapp.integrationtest.PropertyRenderingTest)
  
testDistinctResource(org.apache.sling.launchpad.webapp.integrationtest.UploadFileTest)
  
testDistinctResourceWithType(org.apache.sling.launchpad.webapp.integrationtest.UploadFileTest)
  
testDistinctFile(org.apache.sling.launchpad.webapp.integrationtest.UploadFileTest)
  testRtJsp(org.apache.sling.launchpad.webapp.integrationtest.JspScriptingTest)
  
testUnstructuredJsp(org.apache.sling.launchpad.webapp.integrationtest.JspScriptingTest)
  
testAptDocument(org.apache.sling.launchpad.webapp.integrationtest.apt.SimpleAptRenderingTest)
  
testJsonFile(org.apache.sling.launchpad.webapp.integrationtest.StreamServletTest)

> SlingMainServlet still used as the HttpContext after being deactivated
> ----------------------------------------------------------------------
>
>                 Key: SLING-310
>                 URL: https://issues.apache.org/jira/browse/SLING-310
>             Project: Sling
>          Issue Type: Bug
>            Reporter: Bertrand Delacretaz
>         Attachments: SLING-310.log
>
>
> In revision 633868, with this build/start sequence:
> cd launchpad/webapp
> cd ../app ; mvn clean install ; cd - ; mvn clean integration-test 
> -Dintegration.test.wait=true
> Some integration tests fail, like for example 
> PropertyRenderingTest.testTextNoExt
> The problem is that mimeTypeService is null here:
>             HttpContext httpContext = new HttpContext() {
>                 public String getMimeType(String name) {
>                     return mimeTypeService.getMimeType(name);
>                 }
> event though the mimeTypeService of the enclosing class is set.
> Not sure what's happening, maybe there are several instances of this 
> HttpContext around.
> To simplify, I'll change SlingMainServlet to implement HttpContext

-- 
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