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=20383>. 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=20383 Redirected URLs are resolved but don't change the base URI Summary: Redirected URLs are resolved but don't change the base URI Product: Xerces2-J Version: 2.4.0 Platform: All OS/Version: All Status: NEW Severity: Major Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Try pointing sax.Counter at http://www.ibiblio.org/xml (note the lack of trailing slash. This is not the same as http://www.ibiblio.org/xml/ ) The server redirects the client to http://www.ibiblio.org/xml/ using a 301 Moved permanently and this is the URL Xerces actually loads and parses. However, the Locator.getSystemID call still returns the original URL http://www.ibiblio.org/xml Consequently, relative URLs with the document such as the system ID for the DTD are resolved incorrectly as http://www.ibiblio.org/DTD/xhtml-transitional.dtd instead of http://www.ibiblio.org/xml/DTD/xhtml-transitional.dtd When a document has moved, and the parser chooses to follow the redirection, the Locator should return the actual system ID of the document, not the URL which was initially chosen. Although this bug is easily demonstrated with sax.Counter, the problem is not there, but deeper in the parser. I've encountered it in other code that uses the SAX parser directly. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
