You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tyler Palsulich (JIRA)" <ji...@apache.org> on 2015/03/14 00:53:38 UTC

[jira] [Commented] (TIKA-1069) Tika TXTParser requires (writeLimit + 1) because of paragrah wrapping

    [ https://issues.apache.org/jira/browse/TIKA-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14361344#comment-14361344 ] 

Tyler Palsulich commented on TIKA-1069:
---------------------------------------

Reproduced this with 1.8-SNAPSHOT. If a text file has {{writeLimit - 1}} characters, it's fine. But, if it has exactly {{writeLimit}} characters, an exception is thrown which says the document contained more than {{writeLimit}} characters, which isn't true. Thoughts?

> Tika TXTParser requires (writeLimit + 1) because of paragrah wrapping
> ---------------------------------------------------------------------
>
>                 Key: TIKA-1069
>                 URL: https://issues.apache.org/jira/browse/TIKA-1069
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.2
>            Reporter: Horia Chiorean
>
> When using a configured {{writeLimit}} with {{BodyContentHandler}}, together with the {{TXTParser}}, the latter always throws a {{WriteLimitReachedException}} from the {{ignorableWhitespace}} method, when parsing a text which has the {{writeLimit}} length.
> From what I can tell so far, this is caused by the fact that the {{TXTParser}} wraps the text in a "p" element.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)