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

When implementing migrateProperties, use of PropertyConfiguration.hasProperty() may return wrong result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.0-M1
    • Core Framework
    • None

    Description

      When making use of PropertyConfiguration.hasProperty(String) or PropertyConfiguration.hasProperty(PropertyDescriptor), the method always returns true if the property is defined in the component evaluating it - even when the property did not exist in the previous build.

      Before calling migrateProperties we apply the configuration to the Processor/Controller Service/Reporting Task. We then create the PropertyConfiguration based on that. So, if the property descriptor is defined in the new version, hasProperty will return true, even if it was not in the properties of the previous version of the component.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              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 - 20m
                  20m