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

UI-Validation for calculated items states error while technically possible.

    XMLWordPrintable

Details

    • Team A
    • Sprint 83 (Dec 2021), Sprint 84 (Jan 2022)
    • 1

    Description

      Steps to reproduce:

      1. Create a calculated item with a function as pattern and without ", like:
      count(//item.one[1658],#4,"gt",avg(//item2[1234],15m))
      

      Result:

      With Test there will be successfully a retrieval of values possible.

      During Add/Update the UI prints the following error:

      Invalid parameter "/1/params": incorrect expression starting from "count(//item1[1658],#4,"gt",avg(//item2[1234],15m))".

      Create/Update of items is only possible when the function (pattern) is in quotation marks:

      count(//item1[1658],#4,"gt","avg(//item2[1234],15m)").
      

      But this will end up in the error in the UI:

      Cannot evaluate function: "avg(//item2[1234],15m)" is not a valid numeric float value at "count(//item1[1658],#4,"gt","avg(//item2[1234],15m)")".

      Expected:

      The ui follows the technical implementation and allows a pattern to be a function without quotation marks.

      Attachments

        Activity

          People

            averza Andrejs Verza
            kschreoder Kay Schroeder
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: