[ZBX-10967] httptest.update API has several problems without httpstepid Created: 2016 Jul 04  Updated: 2017 May 30  Resolved: 2016 Jul 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.2.13, 3.0.3
Fix Version/s: 2.2.14rc1, 3.0.4rc1, 3.2.0alpha1

Type: Incident report Priority: Major
Reporter: Kim Jongkwon Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: webmonitoring
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBX-10842 httptest.update fails when updating s... Closed

 Description   

httptest.update API method has several problem. The main reasons are "create new steps" update process.
If you updating steps without httpstepid via API request :
Remove all current steps and then create new steps.

I confirmed like these problem cases and I think that could be related each other.

Case 1. SQL ERROR -> FAILED Response

Duplicated as ZBX-10842 issue:
httptest.update fails when updating steps without httpstepid

When Create a httptest on frontend page and then
Try to update using httptest.update with exact same data via API.

Parameters :
This problem will occur when update parameters

  • same step "name"
  • contain "applicationsid"
  • without "httpstepid" (It will be create new httpsteps process)

Update fails with the following DB error response:

Example :
  ["code"]=>  int(-32500)
  ["message"]=>  string(18) "Application error."
  ["data"]=>  string(132) "SQL statement execution has failed "INSERT INTO items_applications (applicationid,itemid,itemappid) VALUES ('576','27693','10278')"."

Case 2. New step items was disappeared -> SUCCESS Response

When Create a httptest on frontend page and then try to update using httptest.update with exact same data without "applicationsid". New step items was disappeared. (also can't find on items table!)

Parameters :

  • without "applicationsid"
  • without "httpstepid" (create new httpsteps)

Temporary solution? : If you same request sent once more. Items was successfully updated.

Case 3. New steps do not connected own applicationid -> SUCCESS Response.

This problem will occur when

  • add a new "steps" to an array (Append)
  • without "applicationsid"
  • without "httpstepid"


 Comments   
Comment by Kim Jongkwon [ 2016 Jul 04 ]

3.0.3 still has this problems. (I checked ZBX-8194. But seems that this issue is not related.)

Comment by Aleksandrs Saveljevs [ 2016 Jul 04 ]

Seems to have been originally reported as ZBX-10842. Closing this issue as a duplicate.

Generated at Thu Apr 25 16:49:52 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.