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

Handle openpdf upgrade Dependabot pull request

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.10
    • Component/s: CI/CD
    • Upgrade notes:
      Hide

      The com.github.librepdf:openpdf dependency has been upgraded from 1.3.40 to 1.4.1.
      Thus, the AcroFields#getSignatureNames() method isn't available anymore, it is replaced by AcroFields#getSignedFieldNames().

      Show
      The com.github.librepdf:openpdf dependency has been upgraded from 1.3.40 to 1.4.1. Thus, the AcroFields#getSignatureNames() method isn't available anymore, it is replaced by AcroFields#getSignedFieldNames() .
    • Sprint:
      nxplatform #109
    • Story Points:
      1

      Description

      Dependabot tries to upgrade com.github.librepdf:openpdf from 1.3.40 to 1.4.1, see https://github.com/nuxeo/nuxeo-lts/pull/1752, but it's breaking the signature module with:

      [ERROR] /home/jenkins/workspace/nuxeo_lts_nuxeo_PR-1752/modules/platform/nuxeo-signature/nuxeo-platform-signature-core/src/main/java/org/nuxeo/ecm/platform/signature/core/sign/SignatureServiceImpl.java:[507,49] cannot find symbol
      symbol:   method getSignatureNames()
      location: variable acroFields of type com.lowagie.text.pdf.AcroFields
      

      The getSignatureNames() method is deprecated in 1.3.40, recommending to use AcroFields#getSignedFieldNames(). Let's try to use it with the the 1.4.1 library.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: