You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joe Gresock (Jira)" <ji...@apache.org> on 2022/01/24 19:42:00 UTC

[jira] [Created] (NIFI-9626) Allow unrecognized VersionedFlowSnapshot properties in Stateless

Joe Gresock created NIFI-9626:
---------------------------------

             Summary: 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


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)