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

Trailing and leading spaces in "Value" and "Mapped to" fields are not trimmed when creating a new value mapping

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 5.0.8rc1, 5.2.4rc1
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Labels:

      Description

      Problem description: Trailing and leading spaces in "Value" and "Mapped to" fields are not trimmed when creating a new value mapping, but these fields are trimmed during update of the same value mapping.

      Steps to reproduce:

      1. Create a new value mapping - make sure that value mapping "Name", as well as Mapping fields "Value" and "Mapped to" contain trailing and leading spaces
      2. Save the value mapping
      3. Open the created value mapping in edit mode
        Result 1: Trailing and leading spaces are trimmed only in the name of the value mapping. Trailing spaces still exist in Mapping fields "Value" and "Mapped to"
      4. Press "Update" button
      5. Open the updated value mapping again
        Result 2: Now trailing and leading spaces are trimmed in all fields.

      Expected: Trailing and leading spaces should be trimmed in all fields also when creating a new value mapping.

      Example:

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: