cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25069] New: - ResourceReader might leave the source.InputStream open
Date Fri, 28 Nov 2003 16:25:05 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=25069>.
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=25069

ResourceReader might leave the source.InputStream open

           Summary: ResourceReader might leave the source.InputStream open
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: g.brand@interface-business.de


The ResourceReader doesn't encapsulate the processStream() call inside of
generate() with a try {} and finally {} to close the inputstream.
Thus the stream stays open if processStream() fails.

Attached patch will add those blocks and fix this.

Mime
View raw message