Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-661

MimeType class does contain a String with accessor named Extension. This should be a List<String> Extensions due to several reasons.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.10
    • mime

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jukkaz Jukka Zitting
            gaffa Henning Gross
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment