tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Krugler (JIRA)" <j...@apache.org>
Subject [jira] Updated: (TIKA-351) MediaType.parse should be more forgiving of broken input
Date Tue, 15 Dec 2009 23:15:18 GMT

     [ https://issues.apache.org/jira/browse/TIKA-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ken Krugler updated TIKA-351:
-----------------------------

    Attachment: TIKA-351.patch

This patch also moves MediaTypeTest.java from tika-parsers to tika-core, since it tests the
MediaType class that's in tika-core.


> MediaType.parse should be more forgiving of broken input
> --------------------------------------------------------
>
>                 Key: TIKA-351
>                 URL: https://issues.apache.org/jira/browse/TIKA-351
>             Project: Tika
>          Issue Type: Improvement
>            Reporter: Ken Krugler
>             Fix For: 0.6
>
>         Attachments: TIKA-351.patch
>
>
> 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"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message