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

Bad error message on validation when controller service is invalid

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5.0
    • Component/s: Core Framework
    • Labels:
      None

      Description

      We have a Processor that references a Controller Service (A), and A then references another Controller Service (B). The property value in A had a typo that caused it to reference an invalid service identifier. The error message read something along the lines of:

      'XX' validated against 'YY' is invalid because: Controller Service is not valid. No controller service exists with this ID

      This looks like 'YY' (referencing Controller Service A) was an invalid identifier, but in reality Controller Service A was referencing an invalid identifier.

      Proposed fix: PropertyDescriptor, when validating a Controller Service and determining Controller Service is invalid should provide as its explanation

      "Controller Service is not valid: " + result

      instead of

      "Controller Service is not valid: " + result.getExplanation()

        Attachments

        1. 0001-NIFI-45.patch
          1 kB
          Matt Gilman

          Activity

            People

            • Assignee:
              mcgilman Matt Gilman
              Reporter:
              mcgilman Matt Gilman
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: