https://bz.apache.org/bugzilla/show_bug.cgi?id=65854

--- Comment #2 from Dominik Stadler <[email protected]> ---
Not sure if using "org.apache.poi.poifs.filesystem.FileMagic" would help you to
determine the file-type before trying to do actual parsing? It looks at the
first few bytes to quickly see if it looks like a zip-file, binary-OLE2 or some
other older formats.

In general I would use "revert()" at these points when opening the file fails
and we are opening it read-only. I have the relevant changes locally, can add
them to this bug later.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to