[ZBX-5705] API triggerprototype.create possible to create duplicate elements Created: 2012 Oct 18  Updated: 2017 May 30  Resolved: 2017 Feb 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.0.3, 3.0.7, 3.2.3
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: Toms (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: api, create, duplicates, triggerprototypes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBX-3783 Proper API validation Reopened

 Description   
{
 "jsonrpc":"2.0",
 "method":"triggerprototype.create",
 "params":[
  {
   "description":"NEW ZBX",
   "expression":"{h1:vfs.fs.size[{#FSNAME}].last(0)}=0",
   "status":0
  },
  {
   "description":"NEW ZBX",
   "expression":"{h1:vfs.fs.size[{#FSNAME}].last(0)}=0",
   "status":0
  }
 ],
 "id":4,
 "auth":"56783267c6cac2f2cfffe89ba84f6aa0"
}

This API call creates duplicate trigger prototypes within hosts discovery rule. This shouldn't happen.



 Comments   
Comment by Dmitry Verkhoturov [ 2017 Jan 31 ]

Is it still actual, is 2.2 and 3.0 affected? ZBX-4134 somehow related.

Comment by Oleksii Zagorskyi [ 2017 Feb 03 ]

Still actual for latest 3.0 and 3.2

Comment by Alexander Vladishev [ 2017 Feb 05 ]

Moved to ZBX-3783 (70).

Generated at Fri Mar 29 10:03:16 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.