Bug 35500 - Missing .close() call on stream opened for JPEG images
Summary: Missing .close() call on stream opened for JPEG images
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: images (show other bugs)
Version: 0.20.5
Hardware: All other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-24 16:38 UTC by Andreas Gilmut
Modified: 2012-04-07 01:51 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Gilmut 2005-06-24 16:38:53 UTC
The code for JPEG image handling is missing .close() statement for the
opened stream. This can lead to "out of file handle" problems especially in  
environments where fop is embedded in server type applications.
Comment 1 Ben Nimmo 2010-12-08 07:34:42 UTC
I think this might stem from Apache XML Graphics Commons library. Not sure of the file though.
Comment 2 Andreas Gilmut 2010-12-09 11:23:19 UTC
The affected class is org.apache.fop.image.JpegImage. It is part of fop itself in version 0.20.5.
In the method loadImage() the close call of inStream is missing.
Comment 3 Glenn Adams 2012-04-07 01:41:55 UTC
resetting P2 open bugs to P3 pending further review