Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8933

Jersey ObjectMapper should ignore unknown fields

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.14.0
    • 1.15.0
    • None
    • None

    Description

      The ObjectMapper used by Jersey is configured in ObjectMapperResolver and does not specify any configuration related to unknown fields, so the default is to fail.

      This can be problematic when trying to import a flow definition that may have been produced with a newer NiFi version than the current one, and therefore has new fields.

      This works when we import from registry because the registry client uses a different ObjectMapper, and the same for when using the UI to create a new process group from a file, but it fails using the process group replacement REST API.

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              bbende Bryan Bende
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h