[ 
https://issues.apache.org/jira/browse/NIFI-9910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520818#comment-17520818
 ] 

ASF subversion and git services commented on NIFI-9910:
-------------------------------------------------------

Commit b67b2bc3565ac7f2463ca19a1b1245ebc46bb74e in nifi's branch 
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=b67b2bc356 ]

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: 10m
>  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)

Reply via email to