You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Chuck Dumont (JIRA)" <ji...@apache.org> on 2015/06/15 15:38:00 UTC
[jira] [Created] (SM-2590)
javax.activation.MimetypesFileTypeMap#addMimeTypes() not implemented
correctly
Chuck Dumont created SM-2590:
--------------------------------
Summary: javax.activation.MimetypesFileTypeMap#addMimeTypes() not implemented correctly
Key: SM-2590
URL: https://issues.apache.org/jira/browse/SM-2590
Project: ServiceMix
Issue Type: Bug
Components: specs
Environment: All
Reporter: Chuck Dumont
According to http://docs.oracle.com/javase/7/docs/api/javax/activation/MimetypesFileTypeMap.html#addMimeTypes%28java.lang.String%29, the mime_type parameter is "a mine.types formatted string of entries". Note the plural entries. This is consistent with the behavior of the Oracle implementation.
The servicemix implementation of this method incorrectly treats the parameter as a single mime.types entry. If a string containing multiple, new-line delimited, entries is passed then only the first entry is added.
This means that code written to conform to the Oracle documentation/behavior, which passes multiple mime.types entries to this method, will fail when using the servicemix implementation of this class.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)