Uploaded image for project: 'NiFi Registry - MOVED TO NIFI PROJECT'
  1. NiFi Registry - MOVED TO NIFI PROJECT
  2. NIFIREG-228

Cannot delete a flow with no versioned snapshots

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      I have not verified/reproduced this yet. This bug reported on stack overflow:

      https://stackoverflow.com/questions/54744738/cannot-delete-a-flow-in-nifi-registry-via-http-call-when-using-git-as-storagei

      If saving an initial flow version fails, a flow can be created with no versioned flow snapshots. (The flow hasĀ "versionCount": 0). Such a flow can be created by saving a flow snapshot that changes the flow name from the already versioned flow, according to the reporter on github. The original reporter was usingthe git flow persistence provider and the nipyapi versioning.save_flow_ver() call.

      When tying to delete this flow using DELETE /buckets/<bucketId>/flows/<flowId>, it fails with a 409 error.

      The workaround is to save a dummy flow snapshot to get the flow to version 1 and then the entire flow can be deleted.

      The fix is that such flows (flows without versions) should be deletable.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kdoran Kevin Doran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: