Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-4356

tika core content detection possible regression for subtypes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • core
    • None

    Description

      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

      Tika tika = new Tika();
      String jsonString ="{\"test\": \"test\"}";
      String result = tika.detect(jsonString.getBytes(), "test.json");

      Has something changed and now i'm doing it wrong or it is a regression?

       

      thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gingered88 Francesco
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: