Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6686

ResizeImage Processor Does Not Handle Some Exceptions Cleanly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.2
    • 1.11.0
    • Extensions
    • Ubuntu OS, OpenJDK 1.8

    Description

      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.

      Attachments

        1. peppers.jpg
          928 kB
          Matthew Knight

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Matthew Knight Matthew Knight
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Time Spent - 50m Remaining Estimate - 47h 10m
                  47h 10m
                  Logged:
                  Time Spent - 50m Remaining Estimate - 47h 10m
                  50m