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

When configuring component properties, UI should flag/make obvious when there is whitespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.15.0
    • 1.16.0
    • Core UI
    • None

    Description

      It is a very common problem that users will copy & paste values into the property configuration for a processor/controller service/etc. And this often results in unwanted white space at the beginning or end of the property value (especially the end). This can have very confusing results, like indicating that a hostname cannot be found or that credentials are invalid, etc. but the issue is not obvious when an error message looks like:

      No route to host: 1.1.1.1

      At the same time, we cannot simply have NiFi trim all property values, because sometimes white space is important. For example, Merge Content allows a header/footer/demarcator which may well intentionally include whitespace.

      While we could add an indicator to Property Descriptors to address this issue, such as:
      .trimWhiteSpace(true)

      it will be easy to forget adding that to the Property Descriptor, and if we default it to true, it would change behavior of many processors unexpectedly.

      Since we cannot trim the values automatically, the UI should flag this when configuring property values, making it very clear that there is leading or trailing whitespace.

      Attachments

        1. whitespace-awareness.png
          15 kB
          Rob Moran

        Issue Links

          Activity

            People

              mtien Margot Tien
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 1h 20m
                  1h 20m