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), Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022), Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 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:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: