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 2003/05/28 07:26:59 UTC
DO NOT REPLY [Bug 20287] New: -
[RFC 2396]: URI has no scheme if ':' occurs after '?' or '#'.
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: xerces-c-dev@xml.apache.org
ReportedBy: mrglavas@ece.uwaterloo.ca
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org