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

FetchS3 does not prepend user defined S3 metadata keys with s3.<s3 metadtata>

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.10.0
    • None
    • Extensions

    Description

      S3 allows the assignment of user defined metadata.

      User defined metadata resides in its own "metadata" array and is called by the "getUserMetadata" function of the S3 java SDK [1]

      When NIFI pulls the object and if there is user defined metadata it adds the metadata key / value as its literal key name.

      This could lead to unintended NiFi attributes being replace like "filename"

      A better approach is to prepend the S3 pulled metadata with s3 similar to how Fetchs3 prepends the other metadata of the object with s3.<metadata key>

      [1] https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/ObjectMetadata.html#getUserMetadata--

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            digitalplumber Juan C. Sequeiros
            digitalplumber Juan C. Sequeiros

            Dates

              Created:
              Updated:

              Slack

                Issue deployment