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

UpdateRecord does not allow user to set root path to some child record

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • Extensions
    • None

    Description

      If i have the following record:

      {
        "queue": {
           "count": 1,
           "size": "1 MB"
        }
      }
      

      And I want to get rid of the 'queue' element I should be able to do so by using UpdateRecord with a property name of "/" and a value of "/queue/*"

      Currently, if I try this, though, I get an error indicating that more than 1 element has been selected. We should instead just create a 'record' object with both the 'count' and 'size' fields and set that as the root so that the result is:

      {
        "count": 1,
        "size": "1 MB"
      }
      

      Attachments

        Activity

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

          People

            markap14 Mark Payne
            markap14 Mark Payne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment