XMLWordPrintable

    • Sprint 3, Sprint 4, Sprint 5
    • 0.5

      Error "Undefined offset" when trying to update web scenario step which was deleted via api call.

      Undefined offset: 243 [ in C:\xampp\htdocs\ZBX-10842\frontends\php\httpconf.php:220]
      Argument 2 passed to CArrayHelper::unsetEqualValues() must be of the type array, null given, called in C:\xampp\htdocs\ZBX-10842\frontends\php\httpconf.php on line 220 and defined [httpconf.php:220 ? CArrayHelper::unsetEqualValues() in C:\xampp\htdocs\ZBX-10842\frontends\php\include\classes\helpers\CArrayHelper.php:157]
      Undefined offset: 242 [ in C:\xampp\htdocs\ZBX-10842\frontends\php\httpconf.php:220]
      Argument 2 passed to CArrayHelper::unsetEqualValues() must be of the type array, null given, called in C:\xampp\htdocs\ZBX-10842\frontends\php\httpconf.php on line 220 and defined [httpconf.php:220 ? CArrayHelper::unsetEqualValues() in C:\xampp\htdocs\ZBX-10842\frontends\php\include\classes\helpers\CArrayHelper.php:157]
      No permissions to referred object or it does not exist! [httpconf.php:226 ? CAPIObject->update() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CHttpTest->update() ? CHttpTest->validateUpdate() ? CHttpTest->checkSteps() ? CZBXAPI::exception() in C:\xampp\htdocs\ZBX-10842\frontends\php\api\classes\CHttpTest.php:606]
      

      How to reproduce:
      1. Update web scenario via frontend
      2. Then update it via API
      For example:

      $httpTests = API::HttpTest()->update(array(
      	'httptestid' => 93,
      	'name' => '2',
      	'hostid' => 10114,
      	'status' => 0,
      	'delay' => 60,
      	'applicationid' => '0',
      	'steps' => array(
      		array(
      			'name' => '1',
      			'url' => '1'
      		),
      		array(
      			'name' => '2',
      			'url' => '2'
      		)
      	)
      ));
      

      3. In frontend press F5, then resubmit form from [1].

            Unassigned Unassigned
            oleg.egorov Oleg Egorov (Inactive)
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: