This is an automated email from the ASF dual-hosted git repository.

mthomsen pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/support/nifi-1.x by this push:
     new 8c65b78ff3 NIFI-11184 Deprecated HashAttribute and 
CryptographicHashAttribute
8c65b78ff3 is described below

commit 8c65b78ff3da9c57735162175620a4743232decb
Author: exceptionfactory <[email protected]>
AuthorDate: Tue Feb 14 16:57:52 2023 -0600

    NIFI-11184 Deprecated HashAttribute and CryptographicHashAttribute
    
    This closes #6956
    
    Signed-off-by: Mike Thomsen <[email protected]>
---
 .../apache/nifi/processors/standard/CryptographicHashAttribute.java  | 5 +++++
 .../main/java/org/apache/nifi/processors/standard/HashAttribute.java | 5 +++++
 2 files changed, 10 insertions(+)

diff --git 
a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/CryptographicHashAttribute.java
 
b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/CryptographicHashAttribute.java
index 053dab3916..cbc24c63af 100644
--- 
a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/CryptographicHashAttribute.java
+++ 
b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/CryptographicHashAttribute.java
@@ -35,6 +35,7 @@ import org.apache.nifi.annotation.behavior.SideEffectFree;
 import org.apache.nifi.annotation.behavior.SupportsBatching;
 import org.apache.nifi.annotation.behavior.WritesAttribute;
 import org.apache.nifi.annotation.documentation.CapabilityDescription;
+import org.apache.nifi.annotation.documentation.DeprecationNotice;
 import org.apache.nifi.annotation.documentation.Tags;
 import org.apache.nifi.components.AllowableValue;
 import org.apache.nifi.components.PropertyDescriptor;
@@ -60,6 +61,10 @@ import org.apache.nifi.security.util.crypto.HashService;
         description = "The property name defines the attribute to look for and 
hash in the incoming flowfile. "
                 + "The property value defines the name to give the generated 
attribute. "
                 + "Attribute names must be unique.")
+@DeprecationNotice(
+        classNames = "org.apache.nifi.processors.attributes.UpdateAttribute",
+        reason = "UpdateAttribute can be configured using the hash Expression 
Language function to digest one or more attributes"
+)
 public class CryptographicHashAttribute extends AbstractProcessor {
     public enum PartialAttributePolicy {
         ALLOW,
diff --git 
a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HashAttribute.java
 
b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HashAttribute.java
index dab0260cb6..b8519fde6d 100644
--- 
a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HashAttribute.java
+++ 
b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HashAttribute.java
@@ -39,6 +39,7 @@ import org.apache.nifi.annotation.behavior.SideEffectFree;
 import org.apache.nifi.annotation.behavior.SupportsBatching;
 import org.apache.nifi.annotation.behavior.WritesAttribute;
 import org.apache.nifi.annotation.documentation.CapabilityDescription;
+import org.apache.nifi.annotation.documentation.DeprecationNotice;
 import org.apache.nifi.annotation.documentation.Tags;
 import org.apache.nifi.components.PropertyDescriptor;
 import org.apache.nifi.flowfile.FlowFile;
@@ -115,6 +116,10 @@ import org.apache.nifi.processor.util.StandardValidators;
         + "group, the value of that group will be used when comparing flow 
file "
         + "attributes. Otherwise, the original flow file attribute's value 
will be used "
         + "if and only if the value matches the given regular expression.")
+@DeprecationNotice(
+        classNames = "org.apache.nifi.processors.attributes.UpdateAttribute",
+        reason = "UpdateAttribute can be configured using the hash Expression 
Language function to digest one or more attributes"
+)
 public class HashAttribute extends AbstractProcessor {
 
     public static final PropertyDescriptor HASH_VALUE_ATTRIBUTE = new 
PropertyDescriptor.Builder()

Reply via email to