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

Trailing and leading spaces are not trimmed in "Macro" field when switching to "Inherited and host macros" view

XMLWordPrintable

    • Sprint candidates
    • 0.25

      Problem description: Trailing and leading spaces are not trimmed in "Macro" field when switching from "Host macros" to "Inherited and host macros" view.
      As result, if Macro name differs only by this trailing/leading space in respect to an inherited macro name (user tried to override the value) then these 2 macros will be considered as different entries in the "Inherited and host macros" view.

      Steps to reproduce:

      1. Open configuration of any host
      2. Switch to Macros tab
      3. Specify a macro that coincides with some global macro, but with a trailing space (for example "{$SNMP_COMMUNITY} ")
      4. Switch to "Inherited and host macros" view
      5. Check the entries for the {$SNMP_COMMUNITY} macro

      Result: two entries exist for the {$SNMP_COMMUNITY} as the trailing space was not trimmed.
      Expected: trailing and leading spaces should be trimmed when switching from "Host macros" to "Inherited and host macros" view.

      Example:

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

              Created:
              Updated: