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

Check for missing validation processes does not work properly in Preflight

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3, 2.0.0
    • Component/s: Preflight
    • Labels:
      None

      Description

      org.apache.pdfbox.preflight.PreflightConfiguration#getInstanceOfProcess(String) method is supposed to return a validator instance for given process name. If process is not found (is not set in PreflightConfiguration) and errorOnMissingProcess flag is set, an exception should be thrown. If that flag is not set, an instance of NOP validator (org.apache.pdfbox.preflight.process.EmptyValidationProcess class) is returned.

      Unfortunatelly there is no way to unconfigure (i.e. disable) specific validation process in PreflightConfiguration. Though it contains the methods #replacePageProcess(String, Class) and #replaceProcess(String, Class), if null is given as the second parameter specifying validation class, then #getInstanceOfProcess(String) method fails with NPE instead of expected behavior for missing validation process.

        Attachments

          Activity

            People

            • Assignee:
              leleueri Eric Leleu
              Reporter:
              abyss Petras
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: