[
https://issues.apache.org/jira/browse/NIFI-9626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17482625#comment-17482625
]
ASF subversion and git services commented on NIFI-9626:
-------------------------------------------------------
Commit 278967829af6fac5130ddcc705576096acfb16d2 in nifi's branch
refs/heads/main from Joe Gresock
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2789678 ]
NIFI-9626: Allowing Stateless NiFi to parse flow snapshots with unrecognized
fields (#5709)
> Allow unrecognized VersionedFlowSnapshot properties in Stateless
> ----------------------------------------------------------------
>
> Key: NIFI-9626
> URL: https://issues.apache.org/jira/browse/NIFI-9626
> Project: Apache NiFi
> Issue Type: Improvement
> Components: NiFi Stateless
> Affects Versions: 1.15.3
> Reporter: Joe Gresock
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> If a versioned flow snapshot JSON file is provided to Stateless NiFi with
> elements unrecognized by the current version of NiFi, a JSON parsing
> exception occurs:
> {code:java}
> Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
> Unrecognized field "parameterProviders"
> at
> org.apache.nifi.stateless.config.PropertiesFileFlowDefinitionParser.readVersionedFlowSnapshot(PropertiesFileFlowDefinitionParser.java:617)
> {code}
> This can be remedied by adding support for the following Jackson
> configuration:
> {noformat}
> DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)