[
https://issues.apache.org/jira/browse/NIFI-15043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18030333#comment-18030333
]
ASF subversion and git services commented on NIFI-15043:
--------------------------------------------------------
Commit b8fa218c928e684afd51226cabe5510a9d1ec4b2 in nifi's branch
refs/heads/main from Jim Steinebrey
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=b8fa218c92 ]
NIFI-15043 - Update Parameter Context Rest API endpoint fails on NiFi cluster
Signed-off-by: Pierre Villard <[email protected]>
This closes #10384.
> Update Parameter Context Rest API endpoint fails on NiFi cluster, works
> standalone
> ----------------------------------------------------------------------------------
>
> Key: NIFI-15043
> URL: https://issues.apache.org/jira/browse/NIFI-15043
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 2.6.0
> Reporter: Jim Steinebrey
> Assignee: Jim Steinebrey
> Priority: Major
> Time Spent: 1h
> Remaining Estimate: 0h
>
> When I call the NiFI Rest API update parameter context endpoint on a NiFi
> cluster of 3 servers
> /nifi-api/parameter-contexts/ea3df954-b37b-30f6-8947-6130177391c9/update-requests
> I get the exception below and the parameter context is NOT updated.
> When I do the same rest call on a standalone NiFi instance, then the rest
> call successfully updates the parameter context.
> 2025-09-22 16:06:46,574 INFO org.apache.nifi.web.util.ParameterUpdateManager:
> Disabling 0 Controller Services in order to upda
> te Parameter Context
> 2025-09-22 16:06:46,574 INFO org.apache.nifi.web.util.ParameterUpdateManager:
> Updating Parameter Context with ID null
> 2025-09-22 16:06:46,588 ERROR
> org.apache.nifi.web.util.ParameterUpdateManager: Failed to update flow across
> cluster when repli
> cating PUT request to
> [https://redacted:8443/nifi-api/parameter-contexts/null] for user
> identity[redacted]. Received 400 response with explanation:
> The ID of the Parameter Context must be specified
> 2025-09-22 16:06:46,588 INFO org.apache.nifi.web.util.ParameterUpdateManager:
> Re-Enabling 0 Controller Services after having u
> pdated Parameter Context
> 2025-09-22 16:06:46,588 INFO org.apache.nifi.web.util.ParameterUpdateManager:
> Restarting 0 Processors after having updated Par
> ameter Context
> 2025-09-22 16:06:46,588 ERROR
> org.apache.nifi.web.api.ParameterContextResource: Failed to update Parameter
> Context
> org.apache.nifi.web.util.LifecycleManagementException: Failed to update Flow
> on all nodes in cluster due to The ID of the Para
> meter Context must be specified
> at
> org.apache.nifi.web.util.ParameterUpdateManager.performParameterContextUpdate(ParameterUpdateManager.java:201)
> at
> org.apache.nifi.web.util.ParameterUpdateManager.updateParameterContexts(ParameterUpdateManager.java:155)
> at
> org.apache.nifi.web.api.ParameterContextResource.lambda$submitUpdateRequest$17(ParameterContextResource.java:832)
> at
> org.apache.nifi.web.api.concurrent.AsyncRequestManager$2.run(AsyncRequestManager.java:117)
> at
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> at java.base/java.lang.Thread.run(Thread.java:840)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)