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

Inline validation: old inline error is displayed in case if value was changed incorrectly while the host form is being submitted

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.4.0beta1 (master)
    • Frontend (F)

      In case if user makes a mistake that would lead to an inline validation error, then he submits the form, notices his mistake, fixes it but in a way that it causes a different inline validation error, then after the loader symbol disappears, the old inline validation error is displayed until the user moves focus away from the field with the error.

      Steps to reproduce:

      1. Create a host - specify as much fields as possible so that validating those fields would take time
      2. Open configuration of this host and move to tab "Encryption"
      3. Select PSK in "Connection to host" or "Connection from host" fields, or press "Change PSK button"
      4. Enter a valid value in "PSK identity" field
      5. Enter a value that consists of 31 hexadecimal characters and 1 non-hexadecimal character, for example: "1111111111111111111111111111111w"
      6. Click anywhere to get the initial inline error "PSK must contain only hexadecimal characters.".
      7. Press "Update" button
      8. While the loader is still present over the "Update" button, remove the non-hexodecimal symbol ("w" in the above example)
      9. Notice that the error changed to "PSK must contain only hexadecimal characters."
      10. Wait for the loader to disappear

      Result: after the loader has disappeared, the initial error is displayed even though the content of the field doesn't have that error anymore. Once the user moves focus from the field with the error, the error message is changed to the correct one.
      Expected: after the loader disappears, the error in the value of the field should match the error message.

      Example:

            vmurzins Valdis Murzins
            solonkins Sergejs Olonkins
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: