]
Dimitris Andreadis updated JBAS-3193:
-------------------------------------
Fix Version/s: (was: JBossAS-4.2.0.CR1)
Assignee: Galder Zamarreno
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: