[ZBX-13494] Macros in labels of link elements in Network Maps do not expand to values for non-Superadmin users Created: 2018 Feb 19  Updated: 2024 Apr 10  Resolved: 2018 Mar 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.4.7
Fix Version/s: 3.4.8rc1, 4.0.0alpha5, 4.0 (plan)

Type: Problem report Priority: Minor
Reporter: Christian Anton Assignee: Alexander Vladishev
Resolution: Fixed Votes: 1
Labels: macros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04. Zabbix 3.4.7. MySQL backend.


Attachments: PNG File 01_map_display_as_super-admin.png     PNG File 02_map_display_as_normal_user.png    
Issue Links:
Causes
caused by ZBX-12607 Long waiting time before map is opene... Closed
Duplicate
is duplicated by ZBX-13501 Link Labels in Maps does not work for... Closed
Sub-task
part of ZBX-13458 Inaccessible Hostname reveals to non-... Closed
Team: Team B
Sprint: Sprint 28, Sprint 29
Story Points: 1

 Description   

Entries in Labels of Links between objects of a network map using the {host:key.func(param)} notation to display measured values in real time do not resolve to values since Zabbix 3.4.7, when the user displaying the map has role "User" or "Admin". It works if the user has the role "Super Admin".

Steps to reproduce

  • Make sure you have a user in your system that is not "Super Administrator" and has access to see at least one host's data
  • Create a new public Network Map, so that the non-Superadmin user can see it.
  • In the Map, place two "Host" object, both being ones that the user mentioned above has permission to see the data.
  • At one of the hosts, configure the label to display some value from the host using the {host:key.func(param)}.
  • Create a link between both host objects
  • For the link element, configure the same Label as for one of the hosts: {host:key.func(param)}
  • Save the map, verify it works and looks like in the first of the attached screenshots (using Super Admin user to display the map)
  • Log out from Zabbix, Log in as non Super-Admin user and display the map
  • The result will look as shown in the second of the attached screenshots: at the host object, it works, at the link object, it doesn't resolve.


 Comments   
Comment by Miroslav Moravcik [ 2018 Feb 19 ]

Same issue after upgrade to 3.4.7. My readers (non-admin) group cant see realtime values in maps

Ubuntu 16.04 LTS but with postgreSQL

Comment by sh0thub [ 2018 Feb 22 ]

I have the same problem after upgraded to 3.4.7. Macros are not expanded only for link labels. For all other types of icons (Host, Image, Trigger, Host group) labels are expanded correcly.

The odd things is, that in map editor, when I have turned on "Expand macros" macros for lik labels are OK, only problem is when you view the map after close editor.

Comment by Grzegorz Grabowski [ 2018 Mar 02 ]

The same. After upgrade 3.2 -> 3.4.7, macro is visible only when editing. After save and view - only definition is visible.

Comment by Alexander Vladishev [ 2018 Mar 05 ]

(1) [A] No translation strings changed

sasha CLOSED

Comment by Alexander Vladishev [ 2018 Mar 05 ]

Fixed in dev branch svn://svn.zabbix.com/branches/dev/ZBX-13494 .

Comment by Alexander Vladishev [ 2018 Mar 12 ]

Fixed in 3.4.8rc1 r78574 and 4.0.0alpha5 r78575.

Generated at Fri Apr 26 09:29:27 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.