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 bu...@apache.org on 2002/05/15 14:34:14 UTC

DO NOT REPLY [Bug 9109] New: - Error handling 'file://' protocol and mixed slashes

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9109

Error handling 'file://' protocol and mixed slashes

           Summary: Error handling 'file://' protocol and mixed slashes
           Product: Xerces-C++
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: dvir@screenpeaks.com


When the parser deals with the 'File' protocol it assumes that the "file://" 
string will be followed by a host name, which isn't always true, thus causing 
an exception.
If we take for instance the following URL:
file://C:/xml/mySchema.xsd
The parser thinks "C:" is the host name and "\xml" is the port.
To reproduce this behaviour, try the following:

<?xml version="1.0" encoding="UTF-8"?>
<a:root xmlns:a="http://mynamespace/a"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://mynamespace/a file://C:/xml/a.xsd">
</a:root>

Also, please consider that there's a chance the code doesn't handle the case of 
a URL formed of both back slashes and forward slashes, like 
in "file://c:\xml/sub\a.xsd".

Cheers
Dvir Ofek
Software Engineer
Screenpeaks Ltd.
dvir@screenpeaks.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org