Github user JPercivall commented on the issue:

    https://github.com/apache/nifi/pull/1356
  
    Sorry @brosander but I was a bit wrong when talking about the ordering of 
the Delete; I should have tested first. 
    
    It appears that instead of deleting both attributes that were initially 
there and new attributes, it only deletes already present attributes. That is 
because, although it does the delete after the addAttribute, the regex is only 
run on the attributes that already existed[1]. So again it does keep the same 
ordering as before but it's contrary to what we though.
    
    Everything else looks good though. If you could change the documentation 
(and maybe throw in a unit test) for the delete ordering I will +1 and merge.
    
    [1] 
https://github.com/apache/nifi/blob/b519204602a5bd40f219f77ac556563010eca4c1/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java#L601-L601


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to