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

Himanshu sahu  Ksolve NiFi Expert commented on NIFI-14855:
----------------------------------------------------------

Hi Team,
I have analyzed the issue thoroughly and successfully implemented a fix. The 
AttributesToJSON processor was failing on malformed JSON-like attributes - I've 
resolved this by adding graceful exception handling that treats invalid JSON as 
strings instead of failing.
-->Status: Fix completed and tested locally. PR submitted: 
https://github.com/apache/nifi/pull/10219
-->Changes: Added try-catch in getFormattedAttributes() method with string 
fallback for invalid JSON parsing.

> Attributes To Json processor issue
> ----------------------------------
>
>                 Key: NIFI-14855
>                 URL: https://issues.apache.org/jira/browse/NIFI-14855
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 2.4.0, 2.5.0
>         Environment: RHEL 9
> 4x nodes cluster
>            Reporter: WojciechWitos
>            Assignee: Himanshu sahu  Ksolve NiFi Expert
>            Priority: Major
>         Attachments: AttributesToJsonProc.mkv
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> AttributesToJson does different things then set up in the processor.
> Sending the video in the attachment - will be easier with visualisation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to