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

Admin View: property validation needs to show for instance invalid

    XMLWordPrintableJSON

Details

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

    Description

      The Admin View UI is correctly handling the cases of property validation and showing the errors next to view configuration property.

      But in the case of instance validation failing, the API is returning the information but that is not shown in the UI. The UI must also show that info as well.

      There is a part of the response that in the case of instance validation failure, it returns valid = false not associated with a property. In the below response, it's telling me the second value must be greater than the first.

      {
        "status": 500,
        "message": "{\"propertyResults\":{\"freeform\":{\"valid\":true,\"detail\":\"OK\"},\"integer\":{\"valid\":true,\"detail\":\"OK\"},\"first.value\":{\"valid\":true,\"detail\":\"OK\"},\"second.value\":{\"valid\":true,\"detail\":\"OK\"},\"url\":{\"valid\":true,\"detail\":\"OK\"}},\"valid\":false,\"detail\":\"Second value must be greater or equal to first\"}"
      }
      

      Attachments

        1. AMBARI-10184.patch
          4 kB
          Antonenko Alexander

        Activity

          People

            aantonenko Antonenko Alexander
            aantonenko Antonenko Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: