[ZBX-8457] User must have access to templates to get macro value in "Last 20 issues". Created: 2014 Jul 09  Updated: 2017 May 30  Resolved: 2017 Jan 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.2.4
Fix Version/s: 2.2.16rc1, 3.0.6rc1, 3.2.2rc1, 3.4.0alpha1

Type: Incident report Priority: Minor
Reporter: Rob Northen Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: macros, permissions, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-2327 Add possibility for Limited users wit... Closed

 Description   

Hi,

I have "user" who sits in "user group" which have RO access to host group called "hosts".
There is one "host" in above group.

This "host" uses "template" for items and triggers.
This "template" is part of group called "my_templates".

Some of triggers have {$MACROS} in Trigger Name.
Problem is that "user" gets "{$MACROS}" string instead of its value in "Last 20 issues".

When I add RO access to "my_templates" in "user group" then problem disappears.

Is it bug or feature?
Problem appeared during migration from v2.0 to 2.2.



 Comments   
Comment by Oleg Egorov (Inactive) [ 2016 Oct 10 ]

(1) No string changes

gunarspujats CLOSED

Comment by Oleg Egorov (Inactive) [ 2016 Oct 10 ]

RESOLVED in the development branch svn://svn.zabbix.com/branches/dev/ZBX-8457 r63062 for 2.2

Comment by Natalja Romancaka [ 2016 Oct 18 ]

ui successfully tested

Comment by Gunars Pujats (Inactive) [ 2016 Oct 18 ]

Tested.

Comment by Alexander Vladishev [ 2016 Oct 19 ]

(2) Fixed performance regression in resolving of user macros directly in branches/2.2 r63281

gunarspujats CLOSED

Comment by Oleg Egorov (Inactive) [ 2016 Oct 19 ]

RESOLVED in the development branch svn://svn.zabbix.com/branches/dev/ZBX-8457-30 r63279 and 63282 for 3.0

Comment by Natalja Romancaka [ 2016 Oct 20 ]

ui for 3.0 successfully tested

Comment by Oleg Egorov (Inactive) [ 2016 Oct 21 ]

Fixed in:

  • pre-2.2.16rc1 r63251
  • pre-3.0.6rc1 r63310
  • pre-3.2.2rc1 r63312
  • pre-3.3.0 (trunk) r63314
Comment by Vladimir Silin (Inactive) [ 2016 Oct 28 ]

(3) "What's new in Zabbix" articles updated for versions 2.2.16, 3.0.6 and 3.2.2

sasha The user macros will be resolved on hosts if they are defined on templates without any permissions. "undefined permissions" is not correct here. The sentence must be rephrased.

REOPENED

martins-v Perhaps "User macros are now resolved on allowed hosts even if the macros are defined on a template that the user does not have permissions to."

sasha Excellent! CLOSED

Comment by Vladimir Silin (Inactive) [ 2016 Dec 16 ]

"What's new in Zabbix" mentioned previously are fixed with approved text version.

Comment by Alexander Vladishev [ 2017 Jan 19 ]

Caused regression: ZBX-11698

Generated at Sat Apr 20 18:10:50 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.