[ 
https://issues.apache.org/jira/browse/PDFBOX-1643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Lehmkühler updated PDFBOX-1643:
---------------------------------------

    Fix Version/s: 1.8.3
    
> 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
>            Assignee: Eric Leleu
>             Fix For: 1.8.3, 2.0.0
>
>         Attachments: PreflightConfiguration_remove_process.patch
>
>
> 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

Reply via email to