Tika
  1. Tika
  2. TIKA-296

Automatically set the supertype for "+xml" mimetypes

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.5
    • Component/s: None
    • Labels:
      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".

      1. tika-296.patch
        6 kB
        Ken Krugler

        Issue Links

          Activity

          Ken Krugler created issue -
          Ken Krugler made changes -
          Field Original Value New Value
          Attachment tika-296.patch [ 12420739 ]
          Ken Krugler made changes -
          Attachment tika-296.patch [ 12420739 ]
          Hide
          Ken Krugler added a comment -

          Updated patch to fix MimeTypesTest that's in tika-parsers (versus tika-core) for some reason.

          Show
          Ken Krugler added a comment - Updated patch to fix MimeTypesTest that's in tika-parsers (versus tika-core) for some reason.
          Ken Krugler made changes -
          Attachment tika-296.patch [ 12420741 ]
          Hide
          Jukka Zitting added a comment -

          Patch committed in revision 820291.

          Show
          Jukka Zitting added a comment - Patch committed in revision 820291.
          Jukka Zitting made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Jukka Zitting [ jukkaz ]
          Fix Version/s 0.5 [ 12314095 ]
          Resolution Fixed [ 1 ]
          Ken Krugler made changes -
          Link This issue relates to TIKA-308 [ TIKA-308 ]
          Jukka Zitting made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          1d 17h 30m 1 Jukka Zitting 30/Sep/09 16:54
          Resolved Resolved Closed Closed
          75d 6h 21m 1 Jukka Zitting 14/Dec/09 22:16

            People

            • Assignee:
              Jukka Zitting
              Reporter:
              Ken Krugler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development