Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
1.14
-
None
-
None
-
Apache Maven 3.2.5
Java version: 1.8.0_112, vendor: Oracle Corporation
Archlinux:
OS name: "linux", version: "4.8.11-1-arch", arch: "amd64", family: "unix"
Description
mvn exec:java -Dexec.mainClass="org.apache.tika.example.DumpTikaConfigExample" -Dexec.arguments="--dump-static"
Tika 1.8 used to produce something like:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <properties> <!--for example: <mimeTypeRepository resource="/org/apache/tika/mime/tika-mimetypes.xml"/>--> <!--for example: <translator class="org.apache.tika.language.translate.GoogleTranslator"/>--> <detectors> <detector class="org.gagravarr.tika.OggDetector"/> <detector class="org.apache.tika.parser.microsoft.POIFSContainerDetector"/> <detector class="org.apache.tika.parser.pkg.ZipContainerDetector"/> <detector class="org.apache.tika.mime.MimeTypes"/> </detectors> <parsers> <parser class="org.apache.tika.parser.asm.ClassParser"> <mime>application/java-vm</mime> </parser> <parser class="org.apache.tika.parser.audio.AudioParser"> <mime>audio/basic</mime> <mime>audio/x-aiff</mime> <mime>audio/x-wav</mime> ...
With Tika 1.14 I get:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <properties> <!--for example: <mimeTypeRepository resource="/org/apache/tika/mime/tika-mimetypes.xml"/>--> <service-loader dynamic="true" loadErrorHandler="IGNORE"/> <!--No translators available--> <detectors> <detector class="org.apache.tika.parser.microsoft.POIFSContainerDetector"/> <detector class="org.apache.tika.parser.microsoft.POIFSContainerDetector"/> <detector class="org.apache.tika.parser.pkg.ZipContainerDetector"/> <detector class="org.apache.tika.parser.pkg.ZipContainerDetector"/> <detector class="org.gagravarr.tika.OggDetector"/> <detector class="org.gagravarr.tika.OggDetector"/> <detector class="org.apache.tika.mime.MimeTypes"/> </detectors> <parsers> <parser class="org.apache.tika.parser.apple.AppleSingleFileParser"/> <parser class="org.apache.tika.parser.apple.AppleSingleFileParser"/> <parser class="org.apache.tika.parser.asm.ClassParser"/> <parser class="org.apache.tika.parser.asm.ClassParser"/> <parser class="org.apache.tika.parser.audio.AudioParser"/> <parser class="org.apache.tika.parser.audio.AudioParser"/> ...
The following problems IMHO:
- Why are all classes in double?
- As I understood the order of the parsers matters: earliler ones
take precendence over later ones? - Matching MIME-types are missing completely?