You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matthew Knight (Jira)" <ji...@apache.org> on 2019/09/19 12:24:00 UTC

[jira] [Issue Comment Deleted] (NIFI-6686) ResizeImage Processor Does Not Handle Some Exceptions Cleanly

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

Matthew Knight updated NIFI-6686:
---------------------------------
    Comment: was deleted

(was: I am working on digging up an image to replicate this.)

> 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
>         Attachments: peppers.jpg
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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)