You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Sam Stephens (Jira)" <ji...@apache.org> on 2023/11/06 23:32:00 UTC
[jira] [Created] (TIKA-4167) CONTENT_TYPE_USER_OVERRIDE doesn't force content type for application/illustrator files
Sam Stephens created TIKA-4167:
----------------------------------
Summary: CONTENT_TYPE_USER_OVERRIDE doesn't force content type for application/illustrator files
Key: TIKA-4167
URL: https://issues.apache.org/jira/browse/TIKA-4167
Project: Tika
Issue Type: Bug
Components: parser
Affects Versions: 2.9.1
Reporter: Sam Stephens
When I parse a file using AutoDetectParser, with Metadata set to
{color:#ce9178}{TikaCoreProperties.CONTENT_TYPE_USER_OVERRIDE: "application/pdf"}{color}
and parse [a PDF-like Illustrator file|[https://github.com/apache/tika/blob/78be82565df4cc3bbc88308be8d686019a10b899/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/test/resources/test-documents/testPDF_AdobeIllustrator.pdf],] the "Content-Type" in the returned metadata is "application/illustrator", not "application/pdf".
I think this is happening because "application/illustrator" is a subtype of "application/pdf".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)