[Bug 66584] ZipPackage can fail to handle excepions.

2023-10-03 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=66584

--- Comment #2 from PJ Fanning  ---
This change has been largely reverted as part of
https://bz.apache.org/bugzilla/show_bug.cgi?id=67579

The original change is in POI 5.2.4 but it is causing a regression will be
undone in future releases.

It is the responsibility of users who have InputStreams that they feed into POI
APIs to close those streams themselves.

Something like:

try(
InputStream stream = ...;
XSSFWorkbook workbook = new XSSFWorkbook(stream)
) {
// use workbook
}

The try-with-resources syntax will ensure that stream and workbook are closed
after the try block completes (regardless of whether there is an exception or
not).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 66584] ZipPackage can fail to handle excepions.

2023-10-02 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=66584

Dominik Stadler  changed:

   What|Removed |Added

 Blocks||67579


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=67579
[Bug 67579] POI 5.2.4 is closing the input stream used in the XSSFWorkbook
constructor  which explicitly specifies closeStream=false
-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 66584] ZipPackage can fail to handle excepions.

2023-04-28 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=66584

PJ Fanning  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 OS||All
 Resolution|--- |FIXED

--- Comment #1 from PJ Fanning  ---
thanks - I made a change with r1909467

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org