Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23072

Empty rows in step variables are eligible for variable name uniqueness validation

XMLWordPrintable

    • Sprint 102 (Jul 2023)
    • 0.125

      Problem description: In web scenario step configuration form, empty row in variables field are considered eligible during variable name uniqueness validation, therefore, if a web scenario step has more than 1 empty row in Variables table, then saving its' configuration will fail with the following error:

      Incorrect value for field "variables/2": value (name)=() already exists.
      

      Steps to reproduce:

      1. Open any existing web scenario configuration in edit mode
      2. Move to Steps tab and press Add button in Steps field
      3. In the opened form fill in the name and URL
      4. Make sure that there are two empty rows in the "Variables" field table
      5. Attempt to save step configuration

      Result: the above error is returned
      Expected: empty rows in Variables table should be removed before validating their uniqueness, or should not be considered eligible for this check.

      Example:

            iivs Ivo Kurzemnieks
            solonkins Sergejs Olonkins
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: