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 2003/11/27 06:34:18 UTC

DO NOT REPLY [Bug 25043] New: - load-external-dtd feature broken in 2.6

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

load-external-dtd feature broken in 2.6

           Summary: load-external-dtd feature broken in 2.6
           Product: Xerces2-J
           Version: 2.6.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: ghoward@apache.org


before upgrading to 2.6, the code: 
builderFactory.setAttribute(
                "http://apache.org/xml/features/nonvalidating/load-external-
dtd",
                new Boolean(false));

successfully kept the parser from attempting to resolve external dtd references 
in the absense of an internet connection.  We cannot use a catalog solution 
because of licensing issues.

Using DOMParser parser = new DOMParser();
parser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-
dtd", false);

only works if no other feature is set.  In our case we need to also set 
http://xml.org/sax/features/namespaces to false which causes the external-dtd 
setting to be ignored, apparently no matter in which order the features are set.

Rolling back to 2.5 fixes the problem.

This is happening in XConfToolTask.java in Cocoon's cvs: 
http://cvs.apache.org/viewcvs.cgi/cocoon-
2.1/tools/src/anttasks/XConfToolTask.java?rev=1.10&content-
type=text/vnd.viewcvs-markup (current revision with no attempt at modification).

Thanks,
Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org