Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1341

double invocation of handler.endDocument() in PDFParser

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5, 1.6
    • Fix Version/s: 1.6
    • Component/s: parser
    • Labels:
    • Environment:

      suse linux 64bit, oracle java 7

      Description

      I currently migrate to Tika 1.5, and fall into this behaviour, which leads to double entries in my database for one pdf file as I work directly with the handler.

      Here are the two calls:

      First call is in PDF2HTML, line 197: handler.endDocument();
      this is part of the PDF2XHTML.process(pdfDocument, handler, context, metadata, localConfig);
      invocation from PDFParser, line 143.

      The second call is then directly in PDFParser, line 151: handler.endDocument();

      Must stay at Tika 1.4 for now - still thanks for good work!

        Attachments

          Activity

            People

            • Assignee:
              tallison Tim Allison
              Reporter:
              reuschling Christian Reuschling
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified