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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to