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

EncryptContent not handling exceptions properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.1.0
    • None

    Description

      EncryptContent does not handle exceptions properly. It has a callback which converts checked exceptions to RuntimeException (ProcessException) but then it just lets them fly. The problem with that is that data which will never succeed (because it cannot be decompressed for example) is always being rolledback. It should go to failure. So we need the processor to handle exceptions.

      https://github.com/apache/incubator-nifi/blob/develop/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EncryptContent.java#L166-L175

      https://github.com/apache/incubator-nifi/blob/develop/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EncryptContent.java#L256-L260

      Attachments

        Activity

          People

            markap14 Mark Payne
            joewitt Joe Witt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: