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

Intermittent errors detecting xls files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.8
    • mime
    • None

    Description

      I am doing some testing of Tika 0.6 and noticed some odd results for the testEXCEL.xls file included in the test suite.

      100 calls to the following code:

      is = new BufferedInputStream(new FileInputStream(filename));

      Metadata metadata = new Metadata();
      metadata.set(Metadata.RESOURCE_NAME_KEY, filename);

      String type = tika.detect(is, metadata);

      Results in different matches as application/msword or application/vnd.ms-excel seemingly at random.

      Attachments

        1. MimeTypes.java
          21 kB
          Simon Tyler

        Activity

          People

            chrismattmann Chris A. Mattmann
            tylersimon Simon Tyler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: