[
https://issues.apache.org/jira/browse/NIFI-13849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888754#comment-17888754
]
ASF subversion and git services commented on NIFI-13849:
--------------------------------------------------------
Commit 3248f17df1d742e2de2d927b70a5f3ca45a8247b in nifi's branch
refs/heads/main from Matt Gilman
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=3248f17df1 ]
NIFI-13849: Including parameter contexts in Convert to Parameter requests.
(#9377)
This closes #9377
> Convert property to parameter tries to delete inherited parameters
> ------------------------------------------------------------------
>
> Key: NIFI-13849
> URL: https://issues.apache.org/jira/browse/NIFI-13849
> Project: Apache NiFi
> Issue Type: Sub-task
> Components: Core UI
> Affects Versions: 2.0.0-M4
> Reporter: Pierre Villard
> Assignee: Matt Gilman
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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.
> *Important note: if InvokeHTTP is NOT running, the conversion of the property
> value into a parameter works as expected and nothing gets deleted in the
> inherited parameter contexts.*
> 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)