You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/04/24 14:15:42 UTC

DO NOT REPLY [Bug 8461] New: - Digester.parse(File) is crippled in two aspects

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

Digester.parse(File) is crippled in two aspects

           Summary: Digester.parse(File) is crippled in two aspects
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Digester
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: szegedia@freemail.hu


1. It constructs an InputSource with a Reader instead of with an InputStream, 
thus effectively forcing the XML parser to interpret the XML file as it is 
written in default platform encoding instead of honoring eventual <?xml 
encoding="..."?> declarations.

2. It does not set the system id of the input source to "file://" + 
file.getAbsolutePath(), therefore making it impossible to resolve external 
entities referenced by relative URLs in the XML file.

A patch is attached that fixes both problems.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>