[ZBX-6063] Cannot add graphs to template screen Created: 2013 Jan 05  Updated: 2017 May 30  Resolved: 2013 Jan 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.4
Fix Version/s: 2.0.5rc1, 2.1.0

Type: Incident report Priority: Blocker
Reporter: Christian Ullrich Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

PHP 5.4.10, database is PostgreSQL 9.2.2



 Description   

I cannot add graphs to a template screen. The popup says "No graphs defined."

The immediate cause of this behavior is in popup.php line 1358 ff., where the host selection from whatever a pageFilter is, overrides the one from the request parameters. Most likely, the override hostid from "pageFilter" is the previously selected "real" host.

This specific symptom can be fixed by skipping both the branches of the if statement on the next line if isset($only_hostid), but I cannot say whether this will break elsewhere.



 Comments   
Comment by richlv [ 2013 Jan 05 ]

confirming in 2.0 branch rev 32487.

this seems to be a really strange combination of various bugs.

a) looks like the revision that originally might have broken this is 30872, but at least in my tests, in some cases, effect is not visible until r32431.

b) for example, just by refreshing graph selection popup, different values are written in profiles table for the following indexes :

web.latest.groupid
web.latest.hostid
web.reports.groupid
web.reports.hostid

why is web.reports.* updated and what is it actually ?

c) possibly related - create a new custom graph, start adding items - in most cases different host in a different group will be preselected

d) in this case and "c" (adding custom graphs to screen, adding items to a graph) profile values should not matter at all, only the page we arrive from should affect the selection

Comment by richlv [ 2013 Jan 05 ]

a pretty serious regression, i'd say this should be fixed for 2.0.5rc1

Comment by Pavels Jelisejevs (Inactive) [ 2013 Jan 09 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-6063.

To reproduce the bug, create a host group with a single empty template. The name of the host group must start with, lets say, "a", to be sorted higher then the "Templates" group. Then try to add the graph.

Comment by Pavels Jelisejevs (Inactive) [ 2013 Jan 09 ]

(1) To reproduce the bug with the graph items you need a host group called "%" with a host.

jelisejev This will be fixed in a different issue ZBX-6088. CLOSED.

Comment by richlv [ 2013 Jan 10 ]

(2) "b" split out as ZBX-6094 , CLOSED

Comment by Oleg Egorov (Inactive) [ 2013 Jan 11 ]

TESTED

Comment by Pavels Jelisejevs (Inactive) [ 2013 Jan 11 ]

Fixed in 2.0.5rc1 r32664 and 2.1.0 r32665.

CLOSED.

Comment by richlv [ 2013 Jan 31 ]

ZBX-6194 is similar

Generated at Tue Apr 16 23:08:48 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.