You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2013/12/17 13:58:08 UTC

[jira] [Commented] (TIKA-1211) OpenDocument (ODF) parser produces multiple startDocument() events

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

Uwe Schindler commented on TIKA-1211:
-------------------------------------

There are multiple ways to fix this:
- Make XHTMLContentHandler prevent multiple startDocument() events. I think thats easiest and most correct. XHTMLContentHandler already has some magic in there.
- Add an additional contenthandler that removes subsequent startDocuments (this is the same as above, just in a separate handler)



> OpenDocument (ODF) parser produces multiple startDocument() events
> ------------------------------------------------------------------
>
>                 Key: TIKA-1211
>                 URL: https://issues.apache.org/jira/browse/TIKA-1211
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.4
>            Reporter: Uwe Schindler
>
> Related to SOLR-4809: Solr receives multiple startDocument events when parsing OpenDocumentFiles.
> The parser already prevents multiple endDocuments, but not multiple startDocuments.
> The bug was introduced when we added parsing content.xml and meta.xml (TIKA-736, but both feed elements to the XHTML output, so we get multiple start/endDocuments).



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)