Github user thenatog commented on the issue:
https://github.com/apache/nifi/pull/2983
How do "Fail when no attributes present" and "Missing attribute policy"
work?
Using your template, "CryptographicHashAttribute (New)" processor fails
files because the "static_sha256" attribute is not present.
"Fail when no attributes present" sounds like it implies that it will fail
if ALL attributes are not present, but it seems that it will fail if at least
one is not present. From this, I take it that "Missing attribute policy"
applies to null attributes and not attributes that are not present. I also
noticed that if "Fail when no attributes present" is false, it will pass to
success but none of the present attributes (say 2 out of 3 were present) will
be hashed.
I suggest maybe that these config properties could be combined into "If
missing attribute(s): { Route to Failure, Route to Success}", where missing
means either the attribute is null or not present. If it is configured as route
to success, it will still hash any present attributes that were configured.
---