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

PDF parser with XFA produce malformed XML

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.24.1
    • Fix Version/s: 1.25
    • Component/s: parser
    • Labels:
      None

      Description

      When 

      curl -T xfa.pdf http://<tika-server>/rmeta/xml --header "Accept: application/json"

      malformed xml is made

      <div class="xfa_content">....</xfa_content> 

      instead of 

      <div class="xfa_content">....</div>

       

      https://github.com/apache/tika/blob/main/tika-parsers/src/main/java/org/apache/tika/parser/pdf/XFAExtractor.java#L75

      does not have a correct match here:

      https://github.com/apache/tika/blob/main/tika-parsers/src/main/java/org/apache/tika/parser/pdf/XFAExtractor.java#L109

      and

      https://github.com/apache/tika/blob/main/tika-parsers/src/main/java/org/apache/tika/parser/pdf/XFAExtractor.java#L138

        Attachments

          Activity

            People

            • Assignee:
              tallison Tim Allison
              Reporter:
              wiwi wiwi

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment