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

Account for potentially multiple runs within a hyperlink in DOCX

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.13
    • Fix Version/s: 2.0, 1.14
    • Component/s: parser
    • Labels:
      None

      Description

      While working on TIKA-1255, I noticed that if a hyperlink has multiple runs in .docx files, we are breaking those into multiple duplicated hyperlinks:

      <a href="http://tika.apache.org/">hy</a><a href="http://tika.apache.org/">per</a><a href="http://tika.apache.org/">  </a><b><a href="http://tika.apache.org/">link</a></b>
      

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Tika-trunk #1097 (See https://builds.apache.org/job/Tika-trunk/1097/)
        TIKA-1255 – fix hyperlinks in doc/docx if there is formatting TIKA-2078 (tallison: rev 80efc84b675c8defa5e86b01b85e1dabc84d32f5)

        • (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/XWPFWordExtractorDecorator.java
        • (edit) tika-parsers/src/test/java/org/apache/tika/parser/microsoft/WordParserTest.java
        • (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java
        • (add) tika-parsers/src/test/resources/test-documents/testWORD_boldHyperlink.docx
        • (edit) tika-parsers/src/test/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParserTest.java
        • (add) tika-parsers/src/test/resources/test-documents/testWORD_boldHyperlink.doc
        • (edit) CHANGES.txt
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Tika-trunk #1097 (See https://builds.apache.org/job/Tika-trunk/1097/ ) TIKA-1255 – fix hyperlinks in doc/docx if there is formatting TIKA-2078 (tallison: rev 80efc84b675c8defa5e86b01b85e1dabc84d32f5) (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/XWPFWordExtractorDecorator.java (edit) tika-parsers/src/test/java/org/apache/tika/parser/microsoft/WordParserTest.java (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java (add) tika-parsers/src/test/resources/test-documents/testWORD_boldHyperlink.docx (edit) tika-parsers/src/test/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParserTest.java (add) tika-parsers/src/test/resources/test-documents/testWORD_boldHyperlink.doc (edit) CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Jenkins build tika-2.x-windows #44 (See https://builds.apache.org/job/tika-2.x-windows/44/)
        TIKA-1255 and TIKA-2078 – fix hyperlinks that include formatting and (tallison: rev 4636f95b2a122a7d52f3b12956c5eeb1f34a8b0e)

        • (edit) tika-parser-modules/tika-parser-office-module/src/test/java/org/apache/tika/parser/microsoft/WordParserTest.java
        • (edit) tika-parser-modules/tika-parser-office-module/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java
        • (add) tika-test-resources/src/test/resources/test-documents/testWORD_boldHyperlink.doc
        • (edit) tika-parser-modules/tika-parser-office-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/XWPFWordExtractorDecorator.java
        • (edit) tika-parser-modules/tika-parser-office-module/src/test/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParserTest.java
        • (add) tika-test-resources/src/test/resources/test-documents/testWORD_boldHyperlink.docx
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Jenkins build tika-2.x-windows #44 (See https://builds.apache.org/job/tika-2.x-windows/44/ ) TIKA-1255 and TIKA-2078 – fix hyperlinks that include formatting and (tallison: rev 4636f95b2a122a7d52f3b12956c5eeb1f34a8b0e) (edit) tika-parser-modules/tika-parser-office-module/src/test/java/org/apache/tika/parser/microsoft/WordParserTest.java (edit) tika-parser-modules/tika-parser-office-module/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java (add) tika-test-resources/src/test/resources/test-documents/testWORD_boldHyperlink.doc (edit) tika-parser-modules/tika-parser-office-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/XWPFWordExtractorDecorator.java (edit) tika-parser-modules/tika-parser-office-module/src/test/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParserTest.java (add) tika-test-resources/src/test/resources/test-documents/testWORD_boldHyperlink.docx
        Hide
        hudson Hudson added a comment -

        ABORTED: Integrated in Jenkins build tika-2.x #140 (See https://builds.apache.org/job/tika-2.x/140/)
        TIKA-1255 and TIKA-2078 – fix hyperlinks that include formatting and (tallison: rev 4636f95b2a122a7d52f3b12956c5eeb1f34a8b0e)

        • (add) tika-test-resources/src/test/resources/test-documents/testWORD_boldHyperlink.docx
        • (edit) tika-parser-modules/tika-parser-office-module/src/test/java/org/apache/tika/parser/microsoft/WordParserTest.java
        • (edit) tika-parser-modules/tika-parser-office-module/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java
        • (edit) tika-parser-modules/tika-parser-office-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/XWPFWordExtractorDecorator.java
        • (edit) tika-parser-modules/tika-parser-office-module/src/test/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParserTest.java
        • (add) tika-test-resources/src/test/resources/test-documents/testWORD_boldHyperlink.doc
        Show
        hudson Hudson added a comment - ABORTED: Integrated in Jenkins build tika-2.x #140 (See https://builds.apache.org/job/tika-2.x/140/ ) TIKA-1255 and TIKA-2078 – fix hyperlinks that include formatting and (tallison: rev 4636f95b2a122a7d52f3b12956c5eeb1f34a8b0e) (add) tika-test-resources/src/test/resources/test-documents/testWORD_boldHyperlink.docx (edit) tika-parser-modules/tika-parser-office-module/src/test/java/org/apache/tika/parser/microsoft/WordParserTest.java (edit) tika-parser-modules/tika-parser-office-module/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java (edit) tika-parser-modules/tika-parser-office-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/XWPFWordExtractorDecorator.java (edit) tika-parser-modules/tika-parser-office-module/src/test/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParserTest.java (add) tika-test-resources/src/test/resources/test-documents/testWORD_boldHyperlink.doc

          People

          • Assignee:
            tallison@mitre.org Tim Allison
            Reporter:
            tallison@mitre.org Tim Allison
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development