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

English ASCII text classified as video/quicktime

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.14
    • Fix Version/s: 1.16
    • Component/s: detector
    • Labels:
      None

      Description

      The attached file was created by the following steps:

      Download http://www.gutenberg.org/files/6688/6688-0.txt from Project Gutenberg

      Discard the first 151 lines: tail -n +151 6688-0.txt > 6688-1.txt

      Running org.apache.tika.detect.DefaultDetector on this file returns “video/quicktime.” I am unsure as to why.

      f = org.apache.tika.io.TikaInputStream.get(java.io.FileInputStream(fullname));
      detector = org.apache.tika.detect.DefaultDetector;
      md = org.apache.tika.metadata.Metadata;
      fulltype = string(detector.detect(f,md));

        Attachments

        1. 6688-1.txt
          1.13 MB
          Christopher Creutzig

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ccreutzig Christopher Creutzig
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: