You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Lee Doron (JIRA)" <xe...@xml.apache.org> on 2011/05/12 06:55:47 UTC
[jira] [Commented] (XERCESC-876) XMLURL::weavePaths does not work
correctly for File protocol
[ https://issues.apache.org/jira/browse/XERCESC-876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032252#comment-13032252 ]
Lee Doron commented on XERCESC-876:
-----------------------------------
This is not a bug. If '#' is in the file name, then it should be percent-encoded as part of converting it into a file URI. Also, the backslashes should be changed to forward slashes. So, in the example, the base URI should have been specified as:
"file://localhost/F:/test/%235/data/input/test.xml"
See http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx for more details. I think this issue can be closed as being invalid.
> XMLURL::weavePaths does not work correctly for File protocol
> ------------------------------------------------------------
>
> Key: XERCESC-876
> URL: https://issues.apache.org/jira/browse/XERCESC-876
> Project: Xerces-C++
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.1.0
> Environment: Operating System: All
> Platform: All
> Reporter: Martin Schaefer
>
> When the base URL is something like
> "file://localhost/F:\test\#5\data\input\test.xml"
> and the relative URL is e.g. "test.xsd", then the resulting URL will be
> "file://localhost/F:\test\test.xsd", which is incorrect.
> This happens when test.xml contains an xsi:schemaLocation attribute referring
> to "test.xsd".
> If the protocol is File, then the pound character ('#'), and the question mark
> character ('?') should NOT indicate the start of a url fragment or url query.
> Instead they should be part of the path.
> Maybe this is a problem of XMLURL::parse() already, but the error only appears
> when a relative XMLURL is created.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org