[ZBX-22266] API does not allow user to create filter tags with same tag and value but different operators Created: 2023 Jan 27  Updated: 2024 Apr 10  Resolved: 2023 Feb 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 6.0.12
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Miks Kronkalns Assignee: Zabbix Development Team
Resolution: Won't fix Votes: 0
Labels: map-element, tags
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team B

 Description   

Steps to reproduce:

  1. Navigate to Monitoriing -> Maps, create a map and add map element;
  2. In Map element configuration dialog add 2 filtering tags:
    1. "Service" + "Contains" + "Zabbix"
    2. "Service" + "Does not equal" + "Zabbix"
  3. Confirm changes and Update map.

Result:
Error with following message appears:

Map update failed.
error: Invalid parameter "/1/selements/1/tags/2": value (tag, value)=(Service, Zabbix) already exists.

Expected:
Uniqueness check should fail only when all 3 properties (tag, operator, value) matches.



 Comments   
Comment by Alexander Vladishev [ 2023 Feb 01 ]

In the map elements conditions with same tags will be evaluated using OR operator. Therefore, it makes no sense to add such filtering conditions.

Generated at Fri Jul 04 10:09:12 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.