tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21283] New: - check for null inputstream before parsing xml in ParseUtils.parseXmlDocument
Date Wed, 02 Jul 2003 16:23:11 GMT
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=21283>.
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=21283

check for null inputstream before parsing xml in ParseUtils.parseXmlDocument

           Summary: check for null inputstream before parsing xml in
                    ParseUtils.parseXmlDocument
           Product: Tomcat 4
           Version: 4.1.24
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Jasper 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: emeade@geekfarm.org


If your inputstream came from a size 0 file, and is passed to the DocumentBuilder's parse
method an IllegalArguementException is thrown by the DocumentBuilder.  Tracking down the source
of this exception would be made easier if ParseUtils checked that the inputstream was not
null or threw exception which included the filename if the inputstream was null.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message