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

Add a Warning / Indicator in the UI if a property value begins or ends with white space

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 1.16.0
    • Core UI
    • None

    Description

      It is not uncommon to see a user enter a property value into the UI where the property value begins or ends with whitespace (both trailing spaces and trailing newlines are fairly common to see), especially when they copy & paste the value in. NiFi does not trim whitespace because there are also very valid use cases for having the white space there (for example, if the property value is used as a prefix for some string, or as a delimiter).

      However, when this happens, users often end up with errors that say something like "User my-user-nameĀ  does not exist" because the property value is set to "my-user-name<space>" and the error message leads the user astray, leading to a lot of confusion.

      Therefore, I propose adding an indicator to the UI, so that when a user configures a property value that begins with or ends with white space, the UI warns to this fact so that the user is able to detect and fix this easily, avoiding the confusion described above.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              markap14 Mark Payne
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: