You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Julien Nioche (JIRA)" <ji...@apache.org> on 2010/07/02 17:02:51 UTC
[jira] Updated: (TIKA-454) Illegal Charset Name crashes HTMLParser
[ https://issues.apache.org/jira/browse/TIKA-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julien Nioche updated TIKA-454:
-------------------------------
Attachment: TIKA-454.patch
Trivial fix - simply catch the exception and let the guesswork begin.
The only drawback of this is that the content type is not fixed accordingly
{code}
Content-Encoding: ISO-8859-1
Content-Length: 110
Content-Type: text/html; charset=ISO 8859-1
{code}
but at least it is not crashing the parsing anymore
> Illegal Charset Name crashes HTMLParser
> ---------------------------------------
>
> Key: TIKA-454
> URL: https://issues.apache.org/jira/browse/TIKA-454
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 0.7
> Reporter: Julien Nioche
> Fix For: 0.8
>
> Attachments: TIKA-454.patch
>
>
> As reported by Andrzej [1], the HTMLParser crashes when the charset found in meta is illegal e.g.
> <meta http-equiv="Content-Type" content="text/html; charset=ISO 8859-1"/>
> [1] http://mail-archives.apache.org/mod_mbox/tika-user/201006.mbox/%3C4C2A102D.7090703@getopt.org%3E
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.