[jboss-jira] [JBoss JIRA] Resolved: (JBAS-3193) Use getCanonicalFile() to provide absolute paths without prepend characters (\..\..\..\)
Galder Zamarreno (JIRA)
jira-events at lists.jboss.org
Mon May 21 18:33:56 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAS-3193?page=all ]
Galder Zamarreno resolved JBAS-3193.
------------------------------------
Resolution: Won't Fix
The original bug was fixed for Java 6 and Java 5.0_06:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4403166
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6182812
However, fixing this introduced:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6481955
This has finally been fixed in Java 6u1 and Java 5 Update 11.
> 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
> Assigned To: Galder Zamarreno
> Priority: Minor
>
> 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