You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/11/10 20:58:12 UTC

DO NOT REPLY [Bug 48168] New: HSSFPicture.getImageDimension() does not close ImageInputStream

https://issues.apache.org/bugzilla/show_bug.cgi?id=48168

           Summary: HSSFPicture.getImageDimension() does not close
                    ImageInputStream
           Product: POI
           Version: 3.5-FINAL
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: gjones@arenapharm.com


In poi-3.5-FINAL

org/apache/poi/hssf/usermodel/HSSFPicture.getImageDimension()

opens an ImageInputStream and does not close it.  Repeated calls to
Picture.resize() result in an exception and hang due to too many open files. 
Fix by closing stream after image dimensions determined.

268d267
<             iis.close();

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 48168] HSSFPicture.getImageDimension() does not close ImageInputStream

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48168

David Fisher <df...@jmlafferty.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #3 from David Fisher <df...@jmlafferty.com> 2009-11-10 21:20:38 UTC ---
Very good. Thanks.

*** This bug has been marked as a duplicate of bug 48134 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 48168] HSSFPicture.getImageDimension() does not close ImageInputStream

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48168

David Fisher <df...@jmlafferty.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from David Fisher <df...@jmlafferty.com> 2009-11-10 12:53:56 UTC ---
This is likely a duplicate of 48134 which has been resolved in trunk.

https://issues.apache.org/bugzilla/show_bug.cgi?id=48134

Would you please give it a try and see if it resolves your case.

Thanks,
Dave

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 48168] HSSFPicture.getImageDimension() does not close ImageInputStream

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48168

Gareth Jones <gj...@arenapharm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Gareth Jones <gj...@arenapharm.com> 2009-11-10 19:49:24 UTC ---
Yes it's the same bug as 48134. I thought I searched on getImageDimension, but
I guess not.

Anyway, I can confirm (using lsof) that it is fixed in
poi-3.6-beta1-20091110.jar (created from build of truck).

Thanks
Gareth

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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