[jboss-jira] [JBoss JIRA] Commented: (JBAS-3193) Use getCanonicalFile() to provide absolute paths without prepend characters (\..\..\..\)
Dimitris Andreadis (JIRA)
jira-events at jboss.com
Mon Jul 24 14:00:11 EDT 2006
[ http://jira.jboss.com/jira/browse/JBAS-3193?page=comments#action_12339968 ]
Dimitris Andreadis commented on JBAS-3193:
------------------------------------------
Where in the codebase this needs fixing?
> Use getCanonicalFile() to provide absolute paths without prepend characters (\..\..\..\)
> ----------------------------------------------------------------------------------------
>
> Key: JBAS-3193
> URL: http://jira.jboss.com/jira/browse/JBAS-3193
> Project: JBoss Application Server
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Deployment services
> Affects Versions: JBossAS-4.0.4.CR2
> Environment: Windows
> Reporter: Galder Zamarreno
> Priority: Minor
> Fix For: JBossAS-4.0.5.CR1
>
>
> Due to a bug in the JVM, paths created by expressions like this File f = new File(parentDir, fileName)
> contain prepend characters (\..\..\..\..\ ) and can result on paths bigger than 255 characters (Windows limit).
> The JVM bug has been fixed but won't be available until Java 6 (Mustang):
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4403166
> The feature request consists of changing File f = new File(parentDir, fileName) to
> f = new File(parentDir, fileName).getCanonicalFile();. This would guarantee that relative paths
> are constructed into absolute ones without prepend characters.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list