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

    Details

    • Type: Problem report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:
      None
    • Team:
      Team B

      Description

      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)""

       

        Attachments

          Activity

            People

            Assignee:
            sasha Alexander Vladishev
            Reporter:
            sasha Alexander Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: