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=20287>.
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=20287

[RFC 2396]: URI has no scheme if ':' occurs after '?' or '#'.

           Summary: [RFC 2396]: URI has no scheme if ':' occurs after '?' or
                    '#'.
           Product: Xerces-C++
           Version: Nightly build (please specify the date)
          Platform: All
               URL: http://www.ietf.org/rfc/rfc2396.txt
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Revision 1.12 of xercesc/util/XMLUri.cpp in CVS.

I found this one from inspecting the code.

If ':' occurs in a URI after '?' or '#' it is part of the query string, or 
fragment, and thus the URI has no scheme. The current code misses both of these 
cases, and will attempt to parse the "scheme" if a colon is found in the query 
string or fragment.

There's some code in initializeScheme() (which also happens to be in the Xerces-
J version of URI), that searches for any of ':/?#' and then scans the substring 
ending which ever character it found first (to match the scheme production). 
This is definitely something to revisit (both here and in Xerces-J), since that 
logic isn't correct, and the boundaries of the scheme were already determined 
in initialize(), so don't require recalculation.

References:
http://www.ietf.org/rfc/rfc2396.txt

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

Reply via email to