Pierre Villard created NIFI-13849:
-------------------------------------
Summary: Convert property to parameter deletes inherited parameters
Key: NIFI-13849
URL: https://issues.apache.org/jira/browse/NIFI-13849
Project: Apache NiFi
Issue Type: Bug
Components: Core UI
Affects Versions: 2.0.0-M4
Reporter: Pierre Villard
Steps to reproduce:
* Create a Parameter Context PCi with parameter A
* Create a Parameter Context PC that inherits PCi
* Create a Process Group that uses PC
* In the process group, create a flow GFF -> InvokeHTTP, configure InvokeHTTP
to use parameter A, and start InvokeHTTP processor (add a dummy endpoint and
autoterminate relationships). In GFF, add a dynamic property foo => foo. Then
click the Convert to Parameter option and click OK.
At this point it will fail saying that the parameter A cannot be deleted
because InvokeHTTP is running.
Debugging shows that this is because the ParameterContextDTO object sent in the
update request specified null for the inherited parameter contexts and it makes
the current logic think that all of the parameters from inherited parameter
contexts should be deleted.
When adding the parameter directly in the parameter context view, the same
ParameterContextDTO object does correctly reference the inherited parameter
context.
It feels like a fix in the UI is needed so that the update request includes the
references to the inherited parameter contexts.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)