[Bug 60234] Regression: XSSFWorkBook#() throws unexpected exception in 3.15 for invalid input

2016-10-11 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=60234

--- Comment #3 from Andreas Kohn  ---
Thanks a lot for confirming that this is intentional, I've adjusted my code!

-- 
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 60234] Regression: XSSFWorkBook#() throws unexpected exception in 3.15 for invalid input

2016-10-10 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=60234

Javen O'Neal  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

-- 
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 60234] Regression: XSSFWorkBook#() throws unexpected exception in 3.15 for invalid input

2016-10-10 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=60234

--- Comment #2 from Nick Burch  ---
NotOfficeXmlFileException extends from UnsupportedFileFormatException, which is
in the core POI jar and has been around for a while. The fix to give a more
helpful exception brings the OOXML code more in line with the behaviour of the
other formats

I'd suggest you change your code to catch
org.apache.poi.UnsupportedFileFormatException as your primary "is this a
supported file" exception

-- 
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 60234] Regression: XSSFWorkBook#() throws unexpected exception in 3.15 for invalid input

2016-10-10 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=60234

--- Comment #1 from Andreas Kohn  ---
Work-around: For now I've changed the catch to catch all RuntimeExceptions, but
that's obviously not very nice.

-- 
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