Misleading inline validation error is displayed in case if string with invalid symbols is used in "Host name" field in Host wizard configuration form

XMLWordPrintable

      Problem description: The inline error message, that is displayed if a value with invalid symbols is used in "Host name" field in host configuration wizard, is misleading:

      The message states, that the value does not match a certain pattern, even though the actual problem is that the value includes symbols that cannot be used in host names. This message is even more misleading in context of the host wizard, because in this case the user not only can specify some new host name, but he can also select an existing host, which can be located by the part of its name (or in other words - pattern). This may cause the user to think that he can only selecy existing hosts here, which is wrong.
      In regular host creation form the message clearly points out the exact cause of the problem:

      Steps to reproduce:

      1. Navigate to Data collection => Hosts
      2. Click on the "Host wizard" button
      3. Select any template in the first view and press "Next"
      4. Enter an invalid host name in "Host name" field
      5. Remove focus from the "Host name" field

      Result: the following inline error is observed: "This value does not match pattern."
      Expected: same erro message as in regular host configuration form is expected: "Incorrect characters used for host name."

        1. screenshot-1.png
          31 kB
          Sergejs Olonkins
        2. screenshot-2.png
          13 kB
          Sergejs Olonkins

            Assignee:
            Zabbix Development Team
            Reporter:
            Sergejs Olonkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: