[ 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.