[ https://issues.apache.org/jira/browse/TIKA-4356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17900408#comment-17900408 ]
Francesco commented on TIKA-4356: --------------------------------- [~tallison] i tested the snippet with the 3.1.0-SNAPSHOT version and i can confirm it worked as expected returning application/json mime > tika core content detection possible regression for subtypes > ------------------------------------------------------------- > > Key: TIKA-4356 > URL: https://issues.apache.org/jira/browse/TIKA-4356 > Project: Tika > Issue Type: Bug > Components: core > Affects Versions: 3.0.0 > Reporter: Francesco > Priority: Major > > Hi, > after updating Tika core from 2.9.2 to 3.0.0. > Seems tika is not able anymore to recognize subtypes with only glob pattern, > like application/json > triying to detect a json like \{"test": "test"}, specifing file name > "file.json" the result from tika is text/plain > while the older version recognize correctly the application/json mime. > the following code works with the 2.9.2 version and return text/plain with > the 3.0.0 > {code:java} > Tika tika = new Tika(); > String jsonString ="{\"test\": \"test\"}"; > String result = tika.detect(jsonString.getBytes(), "test.json");{code} > Has something changed and now i'm doing it wrong or it is a regression? > > thanks. -- This message was sent by Atlassian Jira (v8.20.10#820010)