[
https://issues.apache.org/jira/browse/NIFI-4368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034291#comment-17034291
]
karthik kadajji commented on NIFI-4368:
---------------------------------------
Hi Mark,
The issue looks interesting. The ticket has been assigned to your name. Since
there has been no update to the ticket since 2 years, Would you like me to take
a took at the bug or would you be working on it?
Regards,
Karthik
> UpdateRecord fails if attempting to set a particular array element to some
> other value
> --------------------------------------------------------------------------------------
>
> Key: NIFI-4368
> URL: https://issues.apache.org/jira/browse/NIFI-4368
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
>
> I have the following record:
> {code}
> {
> "id" : 3,
> "numbers" : [1, 2, 3]
> }
> {code}
> I tried using UpdateRecord with a property name of "/numbers[1]" and a
> literal value of "8" but
> the data was not modified. It appears to be due to the fact that the
> ArrayIndexFieldValue class uses the following code:
> {code}
> @Override
> public void updateValue(final Object newValue) {
> getParentRecord().get().setArrayValue(getField().getFieldName(),
> getArrayIndex(), newValue);
> }
> {code}
> But the field was constructed using a field name of "numbers[1]" instead of
> "numbers".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)