[Bug 1695] New: FileURLConnection inputstream isn't closed

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Thu Mar 6 15:49:13 UTC 2014


            Bug ID: 1695
           Summary: FileURLConnection inputstream isn't closed
           Product: IcedTea
           Version: 6-1.13.1
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: IcedTea
          Assignee: gnu.andrew at redhat.com
          Reporter: stephan.meisinger at opitec.com
                CC: unassigned at icedtea.classpath.org

if an application calls getHeaderField(String) in
an FileInputStream is generated. The handle stays open as a member variable. 

If the Connection is closed -> the handle stays open. 

so please overload the method 
void close() {
 if(is != null) {

This could be a unintended functional change and could be avoided by adding a
flag "isStreamRead". This flag is set to true when stream is returned by 

public synchronized InputStream getInputStream();

void close() {
 if(is != null && !isStreamRead) {

This is issue is also available in IceTea7.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140306/73ac9ffe/attachment.html 

More information about the distro-pkg-dev mailing list