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

MediaType.parse should be more forgiving of broken input

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.6
    • None
    • None

    Description

      Currently MediaType.parse will throw a null pointer exception if you pass it something like "text; charset=utf-8", instead of returning null.

      Also, it should handle the "charset first" form that some broken servers return, i.e. "charset=utf-8; text/html"

      Attachments

        1. TIKA-351.patch
          11 kB
          Kenneth William Krugler

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: