[ZBX-13668] Dynamic widget is searching for item key in item prototypes Created: 2018 Mar 28  Updated: 2024 Apr 10  Resolved: 2018 Apr 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.0.0alpha6
Fix Version/s: 3.4.9rc1, 4.0.0alpha6, 4.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Valdis Murzins Assignee: Andrejs Griščenko
Resolution: Fixed Votes: 0
Labels: dashboard, graph, item, key
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team B
Team: Team B
Sprint: Sprint 30, Sprint 31
Story Points: 0.5

 Description   

Steps to reproduce:

  1. Create host H1 with discovery rule with item prototype with key "x"
  2. Create other host H2 with item I2 with key "x"
  3. On dashboard create Simple graph widget with item I2.
  4. Mark widget as Dynamic. Save dashboard.
  5. Select H1 as source for dynamic widgets.
    Result:

    Undefined offset: 0 [zabbix.php:21 ? require_once() ? ZBase->run() ? ZBase->processRequest() ? CController->run() ? CControllerWidgetGraphView->doAction() in app\controllers\CControllerWidgetGraphView.php:151]

    Expected:
    Message: "No permissions to referred object or it does not exist!"

This happens, because graph widget uses function get_same_item_for_host(), that searches for item prototypes, as well as items.



 Comments   
Comment by Andrejs Griščenko [ 2018 Mar 29 ]

(1) [F] No translation strings changes.

iivs CLOSED

Comment by Andrejs Griščenko [ 2018 Mar 29 ]

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

Comment by Andrejs Griščenko [ 2018 Apr 09 ]

Fixed in:

  • 3.4.9rc1 r79439, r79555
  • 4.0.0alpha6 (trunk) r79440, r79556
Generated at Tue Apr 16 16:35:54 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.