[jboss-jira] [JBoss JIRA] (AS7-4502) ServletContext#getRealPath() returns wrong path

Douglas Campos (JIRA) jira-events at lists.jboss.org
Fri Apr 13 11:49:47 EDT 2012


Douglas Campos created AS7-4502:
-----------------------------------

             Summary: ServletContext#getRealPath() returns wrong path
                 Key: AS7-4502
                 URL: https://issues.jboss.org/browse/AS7-4502
             Project: Application Server 7
          Issue Type: Bug
          Components: Web
    Affects Versions: 7.1.1.Final
         Environment: MacOSX Lion
            Reporter: Douglas Campos
            Assignee: Douglas Campos


GET /aerogear-controller-demo/test.haml

ServletContext.getRealPath("/aerogear-controller-demo/test.haml") returns:
/Users/qmx/dev/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp6e0c35ea20e93021/content-85417a32e88feba4/aerogear-controller-demo/test.haml
this path points to a non-existing place, the right one to return would be 

/Users/qmx/dev/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp6e0c35ea20e93021/content-85417a32e88feba4/test.haml

(note the stripped contextPath)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list