[ZBX-8493] "usergroup.massadd" API method creates duplicates in "rights" table Created: 2014 Jul 18  Updated: 2017 May 30  Resolved: 2014 Jul 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.2.4, 2.3.3
Fix Version/s: 2.2.6rc1, 2.3.3

Type: Incident report Priority: Minor
Reporter: Oleg Ivanivskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: duplicates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

"usergroup.massadd" API method creates duplicates in "rights" table. Example:
----------------------------+

rightid groupid permission id

----------------------------+

1 13 3 11
2 13 3 11
3 13 3 11

----------------------------+



 Comments   
Comment by Krists Krigers (Inactive) [ 2014 Jul 21 ]

RESOLVED in r47476, branch svn://svn.zabbix.com/branches/dev/ZBX-8493 (copy of 2.2).

Comment by Oleg Egorov (Inactive) [ 2014 Jul 21 ]

(1) String changes: none.

oleg.egorov CLOSED

Comment by Oleg Egorov (Inactive) [ 2014 Jul 22 ]

(2)

 {
    "usrgrpids": [
        13,
        14,
        13,
        14
    ],
    "rights": {
        "permission": 0,
        "id": "1"
    }
}

Return duplicates

kristsk RESOLVED in r47499.

oleg.egorov CLOSED

Comment by Oleg Egorov (Inactive) [ 2014 Jul 22 ]

TESTED

Comment by Krists Krigers (Inactive) [ 2014 Jul 23 ]

Issue fixed and merged to:

  • 2.2.6rc1 in r47544
  • 2.3.3 (trunk) in r47545

API changelog updated - https://www.zabbix.com/documentation/2.2/manual/api/changes_2.0_-_2.2?&#usergroup

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jul 29 ]

Since the issue was fixed in 2.2.6, I've moved the changelog entry from the 2.0-2.2 changelog, to 2.2 changelog https://www.zabbix.com/documentation/2.2/manual/api/changes_2.2

Generated at Thu Apr 18 03:55:03 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.