Petras created PDFBOX-1643:
------------------------------
Summary: Check for missing validation processes does not work
properly in Preflight
Key: PDFBOX-1643
URL: https://issues.apache.org/jira/browse/PDFBOX-1643
Project: PDFBox
Issue Type: Bug
Components: Preflight
Affects Versions: 1.8.2
Reporter: Petras
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira