This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 64200a25ba NIFI-14905 Improved error message in
StandardNiFiServiceFacade when checking out a flow via Registry Client (#10244)
64200a25ba is described below
commit 64200a25ba297368d74452829fd65a0dc925fb5b
Author: Pierre Villard <[email protected]>
AuthorDate: Thu Aug 28 15:50:26 2025 +0200
NIFI-14905 Improved error message in StandardNiFiServiceFacade when
checking out a flow via Registry Client (#10244)
Co-authored-by: David Handermann <[email protected]>
Signed-off-by: David Handermann <[email protected]>
---
.../src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java
index 18e89d11eb..e9531fd30f 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java
@@ -5436,9 +5436,8 @@ public class StandardNiFiServiceFacade implements
NiFiServiceFacade {
final FlowVersionLocation flowVersionLocation = new
FlowVersionLocation(selectedBranch, bucketId, flowId, flowVersion);
return flowRegistry.getFlowContents(clientUserContext,
flowVersionLocation, fetchRemoteFlows);
} catch (final FlowRegistryException e) {
- logger.error(e.getMessage(), e);
- throw new IllegalArgumentException("The Flow Registry with ID " +
registryId + " reports that no Flow exists with Bucket "
- + bucketId + ", Flow " + flowId + ", Version " +
flowVersion, e);
+ throw new IllegalArgumentException("Error retrieving flow [%s] in
bucket [%s] branch [%s] with version [%s] using Flow Registry Client with ID
[%s]: %s".formatted(flowId,
+ bucketId, branch, flowVersion, registryId,
e.getMessage()), e);
} catch (final IOException ioe) {
throw new IllegalStateException("Failed to communicate with Flow
Registry when attempting to retrieve a versioned flow", ioe);
}