ATS-816: Fix tika apple keynote (#285)

* ATS-816: Fix tika apple keynote
The application/vnd.apple.keynote -> text/plain transformation has been found to fail after switching the version of tika in ATS-801
The previous version of tika would use the org.apache.tika.parser.pkg.PackageParser but the new version uses an empty parser producing empty target file.

* Re enable test for application/vnd.apple.keynote to text
This commit is contained in:
eknizat 2020-08-06 12:30:20 +01:00 committed by GitHub
parent 33eff2d8d7
commit 0273fd5c07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class TikaTransformationIT
Stream.of(
Triple.of("quick.key", "html", "application/vnd.apple.keynote"),
// Does not work, alfresco-docker-sourceMimetype-misc can handle this target mimetype, removed from engine_config.json
// Triple.of("quick.key", "txt", "TikaAuto"),
Triple.of("quick.key", "txt", "application/vnd.apple.keynote"),
Triple.of("quick.key", "xhtml", "application/vnd.apple.keynote"),
Triple.of("quick.key", "xml", "application/vnd.apple.keynote")
),

View File

@ -3,4 +3,13 @@
<!-- This property, when set, will hide the start up warnings of tika for libraries are missing. -->
<!-- See https://issues.apache.org/jira/browse/TIKA-2490 -->
<service-loader initializableProblemHandler="ignore"/>
<parsers>
<!-- ATS-816: Use the PackageParser for application/vnd.apple.keynote.13 as that was used in tika-1.21-20190624-alfresco-patched -->
<parser class="org.apache.tika.parser.pkg.PackageParser">
<mime>application/vnd.apple.keynote.13</mime>
</parser>
<!-- Default parser needs to be included if the PackageParser parser is specified here, otherwise just the PackageParser is added-->
<parser class="org.apache.tika.parser.DefaultParser"/>
</parsers>
</properties>