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

Inaccurate XLS detection trough POIFSContainerDetector

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3
    • mime

    Description

      I've found an inaccurate detection with the attached xls file. POIFSContainerDetector is unable to determine the exact mimetype (vnd.ms-excel) and returns the generic "x-tika-msoffice". This is due to the fact this file's root names are :[Book, DocumentSummaryInformation, SummaryInformation]. POIFSContainerDetector checks only that names contains "WorkBook".
      Could it be possible to add a further or-check like this:

      if (names.contains("Workbook") || names.contains("Book"))

      Thank you,
      Marco

      Attachments

        1. test_book.xls
          21 kB
          Marco Quaranta

        Activity

          People

            Unassigned Unassigned
            101000 Marco Quaranta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: