You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2020/04/30 07:51:18 UTC

[GitHub] [nifi] davidvoit commented on a change in pull request #4175: NIFI-7307 - Add User Metadata support to the Azure Blob Processors + LookupService

davidvoit commented on a change in pull request #4175:
URL: https://github.com/apache/nifi/pull/4175#discussion_r417821459



##########
File path: nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/storage/PutAzureBlobStorage.java
##########
@@ -91,6 +124,15 @@ public void onTrigger(final ProcessContext context, final ProcessSession session
                 }
 
                 try {
+                    if (!userMetadata.isEmpty()) {
+                        blob.setMetadata(userMetadata);
+
+                        StringBuilder userMetaBldr = new StringBuilder();
+                        for (String userKey : userMetadata.keySet()) {
+                            userMetaBldr.append(userKey).append("=").append(userMetadata.get(userKey));
+                        }

Review comment:
       This code is 1:1 stolen from the s3 processor.If we make changes here maybe we should update this one in following pull request to.
   This is in the end only debug stuff, more or less.
   But will look into this




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org