You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xml-commons-dev@xerces.apache.org by "James Livingston (Commented) (JIRA)" <ji...@apache.org> on 2011/12/21 02:23:30 UTC
[jira] [Commented] (XMLCOMMONS-64) Windows pathnames with drive
letters not handled correctly
[ https://issues.apache.org/jira/browse/XMLCOMMONS-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13173735#comment-13173735 ]
James Livingston commented on XMLCOMMONS-64:
--------------------------------------------
The more correct fix for this and XMLCOMMONS-28 would be to simply use "new File(path).toURI().toURL()". That takes care of Windows drive letters, Windows UNC paths, relative paths and so on.
As mentioned on XMLCOMMONS-28 it does require Java 1.4, but is Java 1.3 support that necessary in 2012?
> Windows pathnames with drive letters not handled correctly
> ----------------------------------------------------------
>
> Key: XMLCOMMONS-64
> URL: https://issues.apache.org/jira/browse/XMLCOMMONS-64
> Project: XmlCommons
> Issue Type: Bug
> Components: XML Commons Resolver
> Affects Versions: XML Commons Resolver 1.2.0
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Earl Hood
> Attachments: win-drive-path-patches.zip
>
>
> Created an attachment (id=22128)
> Patches for Catalog.java and FileURL.java
> While working with xml-commons-resolver, I discovered that the code
> does not handle pathnames that utilize window's driver letters. The code
> appears to lose the "absoluteness" of the path, causing resolution of
> other entities/files to fail that have it for a base.
> Attached are patches to Catalog.java and FileURL.java that
> handles Windows drive-letter pathnames.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xml-commons-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: xml-commons-dev-help@xerces.apache.org