I'm in a situation where, in my dev environment, I have a versioned process group A in bucket bA containing an embedded process group B from bucket bB. Both A and B are versioned in the NiFi Registry of my dev environment.
I'm using the CLI to export both A and B from my dev Registry, and then importing A and B in my prod Registry. The issue is that in the json representing A, there is a reference to B containing the url of the dev Registry, the bucket ID and the workflow ID representing B.
To import B in my prod registry, I first created a bucket bB and a workflow B. New UUIDs have been generated for both in the prod registry. Then I did the import of the JSON representing B.
Now I manually update the JSON representing A to set the UUIDs related to B with the new values of my prod registry. Then I created a bucket and a workflow for A in my prod registry, and did the import.
Problem occurs when I try to import the process group A in my prod NiFi. It'll fail with an error looking like this:
I guess there are multiple ways of handling it. It could be on the CLI side or on the Registry side (could be related to NIFIREG-148).