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

ContainerAwareDetector doesn't support non-MSOffice files which use the same magic

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8
    • None
    • None

    Description

      There are many applications which use the MSOffice magic number. I know of Corel Presentations X3, Corel Quattro Pro 7 and X3 and Microsoft Works Word Processor. They have their own mime types.

      They aren't properly supported by POI though which means that if the ContentAwareDetector finds such a file, it will resort to the POIFSContainerDetector and return the basic application/x-tika-msoffice file type because POI won't be able to say anything more specific. This will happen even in situations when the fallback detector might come up with a better answer.

      That's why IMHO the fallback detector should be used if the POIFSContainerDetector returns x-tika-msoffice. If the fallback detector comes up with a more specific type - the more specific one should be used.

      Attachments

        1. test-documents.zip
          81 kB
          Antoni Mylka
        2. tika-non-office-files-with-office-magic.patch
          8 kB
          Antoni Mylka

        Activity

          People

            nick Nick Burch
            antoni.mylka Antoni Mylka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: