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

Value mapping applied in problem name to value with space at the end

XMLWordPrintable

    • Sprint 55 (Aug 2019), Sprint 53 (Jun 2019), Sprint 54 (Jul 2019)
    • 0.125

      Steps to reproduce:
      1) Create a value mapping for character data. (no spaces at the end of value)
      2) Create a Zabbix trapper item of type "character" and apply value mapping to it.
      3) Create a trigger using newly created item and add {ITEM.VALUE} macro in the name of trigger.
      4) Send value to item, having space character at the end of value.

      Result:
      1) Item has new value, but since it ends with space character, value mapping is not applied in latest data, history as well as data overview and plain text widgets. That's correct.
      2) {ITEM.VALUE} macro is resolved and value mapping is applied to name of event and problem.

      Expected:
      Value mapping shouldn't be applied to result of {ITEM.VALUE}/{ITEM.LASTVALUE} macros in event and problem names because untrimmed value doesn't match one specified in value mapping.

            ak Andrejs Kozlovs
            vmurzins Valdis Murzins
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: