Lack of cataloged mime type causes recoverable exception in Reference core class
--------------------------------------------------------------------------------
Key: OODT-136
URL: https://issues.apache.org/jira/browse/OODT-136
Project: OODT
Issue Type: Bug
Components: file manager
Affects Versions: 0.2, 0.1-incubating
Environment: while testing out pcs_trace
Reporter: Chris A. Mattmann
Assignee: Chris A. Mattmann
Fix For: 0.3
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.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira