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

Value mappings does not work for text based simple macros

XMLWordPrintable

    • Team C
    • Sprint 64 (May 2020), Sprint 65 (Jun 2020)
    • 0.5

      Simple macros ({host:key.func()}) use evaluate_LAST() to resolve last(), prev() functions. Now evaluate_LAST() automatically quotes/escapes text values which breaks the value mapping.

      We could unquote text values before value mapping lookup, that would be a quick fix. Proper fix probably might be to change evaluate_LAST() to return unquoted value and then quote when inserting it into expressions (that depends if item type is available at that level, but most probably it is).

            arimdjonoks Artjoms Rimdjonoks
            wiper Andris Zeila
            Team C
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: