Uploaded image for project: 'OODT'
  1. OODT
  2. OODT-136

Lack of cataloged mime type causes recoverable exception in Reference core class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.1-incubating, 0.2
    • 0.3
    • file manager
    • while testing out pcs_trace

    Description

      I was testing out pcs_trace and noticed that the file manager has a pretty annoying bug in it that arose after OODT-58. As it turns out if there is a Product recorded in the o.a.oodt.cas.filemgr.catalog.Catalog interface implementation that does not have its mime type value recorded (either b/c mime type detection wasn't enabled at that point, or perhaps because it was an unrecognizable type, etc.) then the file manager will throw an exception when the Reference class tries to call its #setMimeType method. This is an easy fix – we just need to make sure that the provided mime type in #setMimeType(String) is not null or blank before passing it to Tika.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: