[ZBX-2225] Incorrect linkage if templated items are used in graphs as Y axis min and max values Created: 2010 Mar 25  Updated: 2017 May 30  Resolved: 2010 Apr 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Server (S)
Affects Version/s: 1.8.1
Fix Version/s: 1.8.2

Type: Incident report Priority: Major
Reporter: Alexander Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File database.jpg     JPEG File graph from template.jpg    
Issue Links:
Duplicate
duplicates ZBX-2047 item as "Y axis MAX value" in graph n... Closed
is duplicated by ZBX-2443 Using a Template Item for Y-Axis MAX ... Closed

 Comments   
Comment by Alexander Vladishev [ 2010 Mar 26 ]

Fixed in server code in version pre1.8.2, rev. 11120.

Comment by richlv [ 2010 Mar 26 ]

confirming the fix in dev branch rev 11151.

Comment by richlv [ 2010 Mar 26 ]

a problem was discovered - it is possible to choose items from other templates, and that can result in frontend errors.

most likely when configuring a graph for a template, only items from the same template should be allowed to be chosen.

additionally, even when that would be restricted, the following problem should still be fixed (users might have created such a configuration previously) :

reset() expects parameter 1 to be array, boolean given[/usr/local/apache2/htdocs/dev/ZBX-2225-graph_maxi_inh/api/classes/class.cgraph.php:830]

Comment by richlv [ 2010 Mar 29 ]

dev branch rev 11168 - it is still possible to save graph with axis item refs to different templates.

there should be api level checks that :

1. if graph items are from a template, axis item references must be from the same template;
2. axis item references can only be from a single template

Comment by richlv [ 2010 Mar 29 ]

seems to work as expected in dev branch rev 11187

Comment by Alexey Fukalov [ 2010 Mar 29 ]

branches/1.8 11189

Comment by richlv [ 2010 Mar 31 ]

something went wrong with the merge or elsewhere - current trunk head fails with :

[ CGraph::update ] Graph [ graph_upper ]: Incorrect item for Ymax value

Comment by richlv [ 2010 Apr 06 ]

confirming the fix in dev branch rev 11322.

Comment by Alexey Fukalov [ 2010 Apr 06 ]

branches/1.8 11324

Comment by Mischa Bachmann [ 2010 May 26 ]

I'm sorry but i don't quite understand the fix here. Is the fix applied in a dev branch wich will be released with 1.8.3?

Comment by richlv [ 2010 May 26 ]

this particular issue should be fixed in 1.8.2, but there was another (less serious) problem with item references, which is fixed in svn head (and will be released as 1.8.3)

Generated at Fri Apr 19 17:29:05 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.