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

undefined offset, undefined index and other errors when updating web monitoring scenario with duplicate step

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: None
    • Environment:
      trunk rev 32380.

      Description

      update an existing web scenario, add another step to it. refresh the resulting page.

      Undefined offset: 60 [.php:228]
      Argument 2 passed to unsetEqualValues() must be of the type array, null given, called in /home/main/usr/local/apache2/htdocs/trunk/httpconf.php on line 228 and defined [func.inc.php:2387]
      Undefined index: name [ses/CHttpTest.php:594]
      Web scenario Step "" already exists. [CHttpTest.update -> CHttpTest.validateUpdate -> CHttpTest.checkStepsOnUpdate]

      1) undefined offset and "argument passed" seem to be present ever since support for templated web monitoring was added
      2) note the lack of actual filename for the first error;
      3) notice the empty step name;
      4) "Undefined index: name" is a later regression, added in :

      ------------------------------------------------------------------------
      r32261 | pavels | 2012-12-20 15:15:35 +0200 (Thu, 20 Dec 2012) | 10 lines

      A......... ZBXNEXT-1491 implemented property array support for all get methods
      A......... ZBXNEXT-1491 implemented the map.get selectUrls parameter
      A......... ZBXNEXT-1491 implemented the itemprototype.get selectDiscoveryRule parameter
      A......... ZBXNEXT-1491 fixed alert.get hostids and groupids parameters
      A......... ZBXNEXT-1491 fixed action.get selectConditions and selectOperations returning hashes instead of arrays
      A......... ZBXNEXT-1491 fixed graph.get selectGraphItems returning a hash instead of an array
      A......... ZBXNEXT-1491 fixed item.get selectHosts returning double template objects
      A......... ZBXNEXT-1491 fixed itemprototype.get selectItems not returning web items
      A......... ZBXNEXT-1491 fixed template.get selectTemplates and selectHosts not working with count
      A......... ZBXNEXT-1491 fixed script.get subselects not working when not requesting the groupid and host_access properties

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: