Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-19287

Adding custom property should trim white spaces in the prefix and suffix of the key names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • ambari-web
    • None

    Description

      STR:

      1. Add a custom property by keeping trailing whitespace in the property name

      Expected behavior: white spaces at the end and similar white space in the beginning of the property name should be trimmed and the property should be added and shown in the custom section

      Actual behavior: Validation error is shown

      users that copy paste property name from some document to the custom property addition dialog often have trailing white spaces and see a validation error that leads to confusion.

      Note: Scope of this work is for both single property addition and bulk addition of all properties but it is limited to only property name. No logic related to property value needs to be changed as part of this task

      Attachments

        1. AMBARI-19297_branch-2.5.patch
          3 kB
          Oleg Nechiporenko
        2. AMBARI-19287.patch
          5 kB
          Oleg Nechiporenko

        Issue Links

          Activity

            People

              jaimin Jaimin Jetly
              jaimin Jaimin Jetly
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: