Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4091

Cannot analyze signatures : Wrong type of referenced length object COSObject

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.7, 2.0.8
    • Fix Version/s: 2.0.9, 3.0.0 PDFBox
    • Component/s: Parsing
    • Labels:
      None

      Description

      Dear Colleagues,

      From one of our customer, we have got a pdf. According them and the adobe there is a PKCS7 signature but according the DSS 5.2 there is no. I attached this voucher.

      What do you think?

      One of DSS developer quickly checked their log and we got:

      e.e.e.d.p.pdfbox.PdfBoxSignatureService : Cannot analyze signatures : Wrong type of referenced length object COSObject
      Unknown macro: {8, 0}
      : COSDictionary
      java.io.IOException: Wrong type of referenced length object COSObject

      : COSDictionary
      at org.apache.pdfbox.pdfparser.COSParser.getLength(COSParser.java:908) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdfparser.COSParser.parseCOSStream(COSParser.java:950) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdfparser.COSParser.parseFileObject(COSParser.java:781) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:742) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:673) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdfparser.COSParser.parseDictObjects(COSParser.java:633) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:241) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:276) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1224) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1201) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1182) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1165) ~[pdfbox-2.0.7.jar!/:2.0.7]
      at eu.europa.esig.dss.pdf.pdfbox.PdfBoxSignatureService.getSignatures(PdfBoxSignatureService.java:321) [dss-pades-5.2.jar!/:na]

        Attachments

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              petoendre Endre Pető
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: