[ZBX-14803] Wrong filter values being saved when editing existing filter by host inventory Created: 2018 Sep 04  Updated: 2018 Oct 12  Resolved: 2018 Oct 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.0.21, 3.4.13, 4.0.0beta1
Fix Version/s: 3.0.23rc1, 3.4.15rc1, 4.0.1rc1, 4.2.0alpha1, 4.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Andrejs Griščenko Assignee: Ivo Kurzemnieks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team B
Sprint: Sprint 42, Sprint 43, Sprint 44
Story Points: 0.5

 Description   

Steps to reproduce:

  1. Navigate to Monitoring -> Triggers.
  2. Specify two values in filter by host inventory. For example:
    • Type: aaa
    • Type: bbb
  3. Press Filter button.
  4. Change "Type: aaa" to "Type: ccc".
  5. Press Filter button.
  6. Click on Monitoring -> Triggers in the main menu.

Result:
Observe that second filter by host inventory "Type: bbb" is now replaced with "Type: ccc".

 

The same issue appears in Monitoring -> Problems (3.4 and 4.0) when filtering problems by tags.
Steps to reproduce:

  1. Navigate to Monitoring -> Problems.
  2. Type two values in tag filter: 
    • database: customers
    • database: partners
  3. Press Apply button.
  4. Change "database: customers" to "database: orders".
  5. Press Apply button.
  6. Click on Monitoring -> Problems in the main menu.

Result:
Observe that second tag filter "database: partners" is now replaced with "database: orders".
Duplicate values are saved to database. So the problem is somewhere in CProfile::updateArray() and CProfile::update().



 Comments   
Comment by Ivo Kurzemnieks [ 2018 Sep 12 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-14803

Comment by Ivo Kurzemnieks [ 2018 Oct 03 ]

Fixed in:

  • pre-3.0.23rc1 r85430
  • pre-3.4.15rc1 r85431
  • pre-4.0.1rc1 r85432
  • pre-4.2.0alpha1 (trunk) r85433
Generated at Fri Mar 29 17:06:45 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.