-
Problem report
-
Resolution: Unresolved
-
Trivial
-
7.0.12rc1, 7.2.6rc1, 7.4.0alpha2 (master)
-
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:
- Open configuration of any host
- Switch to Macros tab
- Specify a macro that coincides with some global macro, but with a trailing space (for example "{$SNMP_COMMUNITY} ")
- Switch to "Inherited and host macros" view
- 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.