[jboss-jira] [JBoss JIRA] (WFLY-2265) WebUtils#getRealPath("/config-data") cannot be resolved to absolute file path

zhihong liu (JIRA) jira-events at lists.jboss.org
Tue Oct 8 23:06:02 EDT 2013


zhihong liu created WFLY-2265:
---------------------------------

             Summary: WebUtils#getRealPath("/config-data") cannot be resolved to absolute file path
                 Key: WFLY-2265
                 URL: https://issues.jboss.org/browse/WFLY-2265
             Project: WildFly
          Issue Type: Bug
          Components: Web (JBoss Web)
    Affects Versions: 8.0.0.Beta1
         Environment: Windows 7
            Reporter: zhihong liu
            Assignee: Remy Maucherat
             Fix For: 8.0.0.Beta1


In windows , when use the WebUtils.getRealPath("config-data/TESTDEV") , it returns error message : ServletContext resource [/config-data/TESTDEV] cannot be resolved to absolute file path.

 but WebUtils.getRealPath("/") can return the true path . that is to say , this method can't parse the backslash followed by a string . but it works good in linux/unix .

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