Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32365

Upgrade PDFBox to 2.0.31

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2021.50
    • Fix Version/s: 2021.52
    • Component/s: Automation
    • Release Notes Summary:
      PDFBox was bumped from 2.0.24 to 2.0.31
    • Backlog priority:
      650
    • Upgrade notes:
      Hide

      The following dependencies have been upgraded from 2.0.24 to 2.0.31:

      <dependency>
        <groupId>org.apache.pdfbox</groupId>
        <artifactId>pdfbox</artifactId>
      </dependency>
      <dependency>
        <groupId>org.apache.pdfbox</groupId>
        <artifactId>pdfbox-tools</artifactId>
      </dependency>
      <dependency>
        <groupId>org.apache.pdfbox</groupId>
        <artifactId>fontbox</artifactId>
      </dependency>
      
      Show
      The following dependencies have been upgraded from 2.0.24 to 2.0.31: <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> </dependency> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox-tools</artifactId> </dependency> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>fontbox</artifactId> </dependency>
    • Sprint:
      nxplatform #109, nxplatform #110
    • Story Points:
      1

      Description

      The operation PDFMerge can fail with the following error

       at java.lang.Thread.run(Thread.java:829) [?:?]
       at java.lang.Thread.run(Thread.java:829) [?:?] Suppressed: java.lang.NullPointerException
       at org.apache.pdfbox.pdmodel.common.PDNumberTreeNode.getNumbers(PDNumberTreeNode.java:179) ~[pdfbox-2.0.24.jar:2.0.24]
       at org.apache.pdfbox.multipdf.PDFMergerUtility.getNumberTreeAsMap(PDFMergerUtility.java:1146) ~[pdfbox-2.0.24.jar:2.0.24]
       at org.apache.pdfbox.multipdf.PDFMergerUtility.getNumberTreeAsMap(PDFMergerUtility.java:1161) ~[pdfbox-2.0.24.jar:2.0.24]
       at org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:782) ~[pdfbox-2.0.24.jar:2.0.24]
       at org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:459) ~[pdfbox-2.0.24.jar:2.0.24]
       at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:346) ~[pdfbox-2.0.24.jar:2.0.24]
       at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:330) ~[pdfbox-2.0.24.jar:2.0.24]
       at org.nuxeo.ecm.platform.pdf.PDFMerge.merge(PDFMerge.java:149) ~[nuxeo-platform-pdf-utils-2021.29.7.jar:?]
       at org.nuxeo.ecm.platform.pdf.PDFMerge.merge(PDFMerge.java:119) ~[nuxeo-platform-pdf-utils-2021.29.7.jar:?]
      

      An upgrade of PDFBox lib to 2.0.30 (instead of 2.0.24 currently) fixes the bug.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: