Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-805

MimeTypeUtils doesn't pass Tika the OODT mimetypes.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.8.1
    • None
    • None
    • Don't Know (Unsure) - The default level

    Description

      As Val identified at http://apache.markmail.org/thread/qpfpfvert4yapf3u, Tika isn't actually passed the OODT tika-mimetypes.xml config file in MimeTypesUtil. The problem is that the Tika instance used to detect() is created with private Tika tika = new Tika();. Instead, we should create it with this.tika = new Tika(new DefaultDetector(this.mimeTypes));.

      Commit coming up with the fix + test.

      Thanks for bringing this up, Val!

      I think this issue was brought in with OODT-630, the upgrade to Tika 1.6.

      Attachments

        Activity

          People

            tpalsulich Tyler Bui-Palsulich
            tpalsulich Tyler Bui-Palsulich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: