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

Add validation for alert name edit

    XMLWordPrintableJSON

Details

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

    Description

      1. On the Ambari dashboard, navigate to Alerts. Click on an alert.
      2. Click on the Edit button and note that there is no validation and you can enter characters such as \, < etc.
      3. Also note that you can enter more than 255 characters. However, if the number of characters exceeds 255, an exception is thrown on the server side because the database column only allows 255 characters. The UI however does not restrict this and you get no error message. The value in the UI gets reset to what it was before you added more than 255 characters since the update failed.

      Attachments

        1. EditAlertValidationWithFix.jpg
          17 kB
          Sangeeta Ravindran
        2. EditAlertNoValidation.jpg
          8 kB
          Sangeeta Ravindran
        3. AMBARI-16737.patch
          6 kB
          Sangeeta Ravindran

        Activity

          People

            sangeetar Sangeeta Ravindran
            sangeetar Sangeeta Ravindran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: