mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
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:
parent
33eff2d8d7
commit
0273fd5c07
@ -104,7 +104,7 @@ public class TikaTransformationIT
|
|||||||
Stream.of(
|
Stream.of(
|
||||||
Triple.of("quick.key", "html", "application/vnd.apple.keynote"),
|
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
|
// 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", "xhtml", "application/vnd.apple.keynote"),
|
||||||
Triple.of("quick.key", "xml", "application/vnd.apple.keynote")
|
Triple.of("quick.key", "xml", "application/vnd.apple.keynote")
|
||||||
),
|
),
|
||||||
|
@ -3,4 +3,13 @@
|
|||||||
<!-- This property, when set, will hide the start up warnings of tika for libraries are missing. -->
|
<!-- 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 -->
|
<!-- See https://issues.apache.org/jira/browse/TIKA-2490 -->
|
||||||
<service-loader initializableProblemHandler="ignore"/>
|
<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>
|
</properties>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user