[
https://issues.apache.org/jira/browse/TIKA-661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jukka Zitting resolved TIKA-661.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.0
Assignee: Jukka Zitting
I committed a slightly modified version of the patch in revision 1124360.
Thanks!
> MimeType class does contain a String with accessor named Extension. This
> should be a List<String> Extensions due to several reasons.
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TIKA-661
> URL: https://issues.apache.org/jira/browse/TIKA-661
> Project: Tika
> Issue Type: Bug
> Components: mime
> Affects Versions: 0.9
> Reporter: Henning Gross
> Assignee: Jukka Zitting
> Labels: features, newbie, patch
> Fix For: 1.0
>
> Attachments: MimeType.getExtensionsPatch.txt
>
>
> The javadoc for the method suggest that it will return the "preferred
> extension" for a MimeType. Acutally its the first Extension deserialized from
> tika-mimetypes.xml. The method would have to be renamed to
> getFirstExtensionInList(). This pretty much points at the fact that this
> method makes no sense at all.
> There are several use-cases in which one would want to know ALL known valid
> extensions for one mime type. I will submit a patch later today.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira