[ZBX-14787] Incorrect behavior after user changes templated discovery rules Created: 2018 Aug 30  Updated: 2018 Sep 03

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Larisa Grigorjeva Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: discoveryrule, inheritance, permissions, template
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. Create Template T1 in Host group G1 and Discovery rule Rule1 on this Template.
  2. Create Template T2 in Host group G2 and link it to T1.
  3. Create Host H0 in Host group G0 and link it to Template T2.
  4. Create User1 with following permissions:
    1. User type Zabbix Admin
    2. G0 - Read and Write,
    3. G1 - Read and Write,
    4. G2 - Deny or None
  5. Login with User1 and open Configuration ->Templates -> T1.
  6. Change Discovery rule Rule1. For ex. change name "Rule1" to "DRule1.1"
    Result:
    Observe that name is changed only on Template level, but on Host H0 Discovery rule inherited from T1->T2-> remained with old name "Rule1".
  7. If you make changes from Step #6 with Zabbix Super Admin profile, Discovery rule changes on all levels - Template and Host.

Expeted result
Probably User1 should get error that Discovery rule cannot be changed, because it is inherited from inaccessible Template (T2).

The same issue is actual for Discovery rule Creation, but NOT ACTUAL for Deletion.
If user deletes rule on T1, then it will be deleted also on Host H0, tha same as with SuperAdmin user.


Generated at Tue Apr 16 22:53:51 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.