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

Automatically set the supertype for "+xml" mimetypes

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.4
    • 0.5
    • None
    • None

    Description

      The MimeTypes.forName() method currently has special-case code that auto-sets a mimetype's supertype (parent) to be text/plain if the mimetype name starts with "text/".

      Likewise, it should auto-set the supertype to be "application/xml" if the mimetype name ends with "+xml".

      Attachments

        1. tika-296.patch
          6 kB
          Kenneth William Krugler

        Issue Links

        Activity

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

          People

            jukkaz Jukka Zitting
            kkrugler Kenneth William Krugler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment