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

Improve error reporting by the trigger expression parser.

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • API (A)
    • None
    • Team B

      Currently, the expression parser returns the position at which the expression contains an unexpected or invalid token.

      For example, when try to add this expression:

      25 + sum(last(/host/key1, #1), last(/host/key1, #2), 1a)

      we will get this error:

      Invalid parameter "/1/expression": incorrect expression starting from "sum(last(/host/key1, #1), last(/host/key1, #2), 1a)". 

      The parser points to this token because it contains an invalid expression in the third parameter. It would be more correct to point to the parameter that contains the error with friendly message like "incorrect numeric value starting from "1a)""

       

            sasha Alexander Vladishev
            sasha Alexander Vladishev
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: