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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: Extensions
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: