You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2015/06/17 03:22:00 UTC
[jira] [Resolved] (SM-2590)
javax.activation.MimetypesFileTypeMap#addMimeTypes() not implemented
correctly
[ https://issues.apache.org/jira/browse/SM-2590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved SM-2590.
------------------------------
Resolution: Fixed
Fix Version/s: specs-2.6.0
commit fix
http://git-wip-us.apache.org/repos/asf/servicemix-specs/commit/8caa0aca
> 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
> Assignee: Freeman Fang
> Fix For: specs-2.6.0
>
>
> 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)