Support empty string ContentType in OPC package
Olivier Schmitt <[email protected]> Thu, 12 Oct 2023 15:50:40 -0700
| Newsgroups | gmane.comp.jakarta.poi.user |
|---|---|
| Message-ID | <CAGjKKOMVEMwKNGUi2GnQN6UnELHtCwr1U8b8S=SOe9whYf0E=Q@mail.gmail.com> |
Hello, The Microsoft PowerBI PBIX file format is an OPC package file type. It contains [Content_Types].xml which declares the content types of parts. Unfortunately, the content types are declared as empty strings. Apache POI code throws an exception, when trying to open the file. (org.apache.poi.openxml4j.opc.OPCPackage) Is it possible to support empty string content type for parts? The DotNet source code supports empty contentTypes: https://github.com/dotnet/runtime/blob/main/src/libraries/System.IO.Packaging/src/System/IO/Packaging/ZipPackage.cs Thank you. Olivier