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

Validation can show component is valid when required property depends on another and is unset

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.15.0
    • Core Framework
    • None

    Description

      Consider a Processor that has two properties, Property A and Property B. Property A is required and defaults to a value of "foo". Property B is required but depends on Property A being set to "foo" (i.e., Property B is required iff Property A is set to the value "foo").

      When the Processor is created, Property A will have its default value, "foo". But Property B will be unset. The Processor is still considered valid, even though the required Property B is unset.

      Attachments

        Issue Links

          Activity

            Commit a675023b71fc8ffcb9bc2c73dd29abed7cd9f3c6 in nifi's branch refs/heads/main from Mark Payne
            [ https://gitbox.apache.org/repos/asf?p=nifi.git;h=a675023 ]

            NIFI-9272: When determining if Property dependency is satisfied, consider property default values also

            Signed-off-by: Joe Gresock <jgresock@gmail.com>

            This closes #5432.

            jira-bot ASF subversion and git services added a comment - Commit a675023b71fc8ffcb9bc2c73dd29abed7cd9f3c6 in nifi's branch refs/heads/main from Mark Payne [ https://gitbox.apache.org/repos/asf?p=nifi.git;h=a675023 ] NIFI-9272 : When determining if Property dependency is satisfied, consider property default values also Signed-off-by: Joe Gresock <jgresock@gmail.com> This closes #5432.

            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 - 40m
                  40m