[
https://issues.apache.org/jira/browse/TIKA-4336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17892119#comment-17892119
]
Tim Allison commented on TIKA-4336:
-----------------------------------
TIKA-4119 changed {{application/javascript}} -> {{text/javascript}}. json is a
subclass of {{application/javascript}} so the lookup is now missing the path to
{{text/plain}}. We can modify the subclass of json to {{text/javascript}} and
we should be good to go.
If you have time, a PR with a new unit test based on your code above would help
move this more quickly.
Thank you!
> 'application/json' is not instance of 'text/plain'
> --------------------------------------------------
>
> Key: TIKA-4336
> URL: https://issues.apache.org/jira/browse/TIKA-4336
> Project: Tika
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Valery Yatsynovich
> Priority: Major
>
> {{MediaTypeRegistry.getDefaultRegistry().isInstanceOf("application/json",
> MediaType.TEXT_PLAIN)}}
> => true on version {{2.9.2}}
> => false on version {{3.0.0}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)