Bryan Bende created NIFI-7174:
---------------------------------

             Summary: Improve error message when importing flow from registry
                 Key: NIFI-7174
                 URL: https://issues.apache.org/jira/browse/NIFI-7174
             Project: Apache NiFi
          Issue Type: Improvement
    Affects Versions: 1.11.2
            Reporter: Bryan Bende


When you try to import a flow from registry that contains a nested versioned 
flow located at a URL that NiFi doesn't have a registry client for, it produces 
an error in the UI that says:

{color:#008000}"The Flow Registry with ID " {color}+ registryId + 
{color:#008000}" reports that no Flow exists with Bucket "
{color} + bucketId + {color:#008000}", Flow " {color}+ flowId + 
{color:#008000}", Version " {color}+ flowVersion

but the logs show the real error:
{code:java}
2020-02-20 12:35:59,898 ERROR [NiFi Web Server-107] 
o.a.nifi.web.StandardNiFiServiceFacade Flow contains a reference to another 
Versioned Flow located at URL http://localhost:18080 but NiFi is not configured 
to communicate with a Flow Registry at that URL
org.apache.nifi.registry.client.NiFiRegistryException: Flow contains a 
reference to another Versioned Flow located at URL http://localhost:18080 but 
NiFi is not configured to communicate with a Flow Registry at that URL
  {code}
We should propagate the real error to the end user.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to