[
https://issues.apache.org/jira/browse/NIFI-9910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520819#comment-17520819
]
ASF subversion and git services commented on NIFI-9910:
-------------------------------------------------------
Commit fef122c0f058ad336b115200883ed66f6d56ba9d in nifi's branch
refs/heads/support/nifi-1.16 from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=fef122c0f0 ]
NIFI-9910: This closes #5956. Call toString() on the provided key in
CSVRecordLookupService instead of attempting to cast to a String
Signed-off-by: Joe Witt <[email protected]>
> CSVRecordLookupService assumes key is a String
> ----------------------------------------------
>
> Key: NIFI-9910
> URL: https://issues.apache.org/jira/browse/NIFI-9910
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Fix For: 1.17.0, 1.16.1
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The CSVRecordLookupService assumes that the provided key is a String and
> attempts to cast the value to a String. If an integer, for example, is
> provided, it throws a ClassCastException.
> SimpleCsvFileLookupService, on the other hand, more appropriately calls
> {{toString()}} to convert the value into a String. We should do this always.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)