Bug 64512

Summary: Ole10Native aka embedded / object packager - handle UTF16 variants
Product: POI Reporter: Andreas Beeker <kiwiwings>
Component: POIFSAssignee: POI Developers List <dev>
Severity: enhancement    
Priority: P2    
Version: 4.1.x-dev   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Andreas Beeker 2020-06-10 22:34:12 UTC
While testing for [1], I've discovered, that my Office installation created Ole10Native containers with a trailing UTF16 label, filename, command, therefore I handle those now also.

Furthermore I've replaced some obsolete parts (e.g. use of OPCPackage.getUnusedPartIndex instead of own file index check).

My main Office installation suffered a problem with grooveex.dll [2], which crashed all object packager activations. I mention this here, as it might also affect other users, who regularly (windows-)update their machines.

[1] https://stackoverflow.com/questions/62090939/apache-poi-unable-to-open-embedded-files

[2] https://answers.microsoft.com/en-us/msoffice/forum/msoffice_onedrivefb-mso_win10/what-does-grooveexdll-do-exactly/36f971c1-69c1-4270-a1c9-685178b9e02b
Comment 1 Andreas Beeker 2020-06-11 00:44:22 UTC
applied via r1878730