You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/01/31 00:39:21 UTC
DO NOT REPLY [Bug 6138] New: -
resolveEntity called with null SystemId for PUBLIC + relative paths
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=6138>.
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=6138
resolveEntity called with null SystemId for PUBLIC + relative paths
Summary: resolveEntity called with null SystemId for PUBLIC +
relative paths
Product: Xerces2-J
Version: 2.0.0
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: SAX
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: ashundi@extensibility.com
When xerces parses following xml file
<!DOCTYPE root PUBLIC "somePubId" "../relative/schema.dtd">
<root ...>
it calls the external entity resolver with a null SystemId and "somePubId" for
publicId. Instead, the SystemId parameter to org.xml.sax.EntityResolver should
be the absolute path.
I think the problem is at XMLEntityManager ::resolveEntity line 523
in org.apache.xerces.impl. It should check and expand expandedSystemId
before passing it on.
By the way: xerces fails the relevant sax2unit tests from
http://sourceforge.net/project/showfiles.php?group_id=8114
as referred by http://www.saxproject.org/
Anli Shundi
ashundi@extensibility.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org