[ 
https://issues.apache.org/jira/browse/TIKA-5031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18138433#comment-18138433
 ] 

Hudson commented on TIKA-5031:
------------------------------

SUCCESS: Integrated in Jenkins build Tika ยป tika-main-jdk17 #1774 (See 
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk17/1774/])
TIKA-5031: parse 3MF packages as zip, not XML (#3529) (github: 
[https://github.com/apache/tika/commit/749d2f1c6210490d917f21b18d4e33e10182b51a])
* (edit) 
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pkg-module/src/main/java/org/apache/tika/parser/pkg/ZipParser.java
* (edit) CHANGES.txt
* (edit) 
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/detect/microsoft/ooxml/OPCPackageDetector.java
* (edit) 
tika-parsers/tika-parsers-standard/tika-parsers-standard-integration-tests/src/test/java/org/apache/tika/parser/pkg/ZipParserTest.java
* (edit) tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml


> 3MF packages are parsed as XML and fail
> ---------------------------------------
>
>                 Key: TIKA-5031
>                 URL: https://issues.apache.org/jira/browse/TIKA-5031
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>            Reporter: Dominik Schmidt
>            Priority: Major
>
> {{.3mf}} files are detected as 
> {{application/vnd.ms-package.3dmanufacturing-3dmodel+xml}} (TIKA-4224). The 
> {{+xml}} suffix makes that a sub-type of {{application/xml}}, so XMLParser 
> receives the zip package and fails with "XML parse error": {{/unpack}} 
> answers 422, {{/rmeta}} records a container exception.
> The {{+xml}} type names the model part inside the package; the package itself 
> is registered with IANA as {{model/3mf}}. Detecting the package as 
> {{model/3mf}} (a zip sub-type) would let a package parser open it, and its 
> {{Metadata/thumbnail.png}} could be emitted as the thumbnail.
> Reproduce with {{test3mf.3mf}} from the integration-test documents (that file 
> has no {{Metadata/thumbnail.png}}, so a fixture with one would be needed for 
> the thumbnail part).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to