[jboss-jira] [JBoss JIRA] (WFLY-807) ServletContext#getRealPath() returns wrong path

jaikiran pai (JIRA) jira-events at lists.jboss.org
Tue Jul 23 02:10:27 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791566#comment-12791566 ] 

jaikiran pai commented on WFLY-807:
-----------------------------------

This is a year old bug report and probably not relevant. Maybe there was a bug in a certain version which used to copy over the web app content at the wrong location in the tmp/vfs folder. 

I've anyway assigned this to Stuart since I think he'll know a bit more about the expected behaviour of this API and can close this JIRA if it isn't an issue.
 
                
> ServletContext#getRealPath() returns wrong path
> -----------------------------------------------
>
>                 Key: WFLY-807
>                 URL: https://issues.jboss.org/browse/WFLY-807
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (JBoss Web)
>         Environment: MacOSX Lion
>            Reporter: Douglas Campos
>            Assignee: Stuart Douglas
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list