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

Mark Payne resolved NIFI-6686.
------------------------------
    Fix Version/s: 1.11.0
       Resolution: Fixed

> ResizeImage Processor Does Not Handle Some Exceptions Cleanly
> -------------------------------------------------------------
>
>                 Key: NIFI-6686
>                 URL: https://issues.apache.org/jira/browse/NIFI-6686
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: 1.9.2
>         Environment: Ubuntu OS, OpenJDK 1.8
>            Reporter: Matthew Knight
>            Priority: Major
>              Labels: beginner, imageio
>             Fix For: 1.11.0
>
>         Attachments: peppers.jpg
>
>   Original Estimate: 48h
>          Time Spent: 50m
>  Remaining Estimate: 47h 10m
>
> The ResizeImage Processor's process method which performs the actual image 
> handles IOExceptions and performs some validation, but it does not handle all 
> exception types cleanly.  The attached image (peppers.jpg) throws an 
> IllegalArgumentException.  The offending flowfile gets penalized, but 
> whenever it is reprocessed this error will just happen again because the 
> image itself is the source of the problem and that has not changed.  
> Processing time becomes wasted as the same file is processed repeatedly at 
> every penalty duration with the same result.  ImageResize exceptions should 
> be caught and handled explicitly as REL_FAILURE.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to