On the monitoring tab of a resource when a user clicks on "Advanced Settings " link to change the time interval to view the displayed metrics, nothing happens. Pop-up blocker is disabled. Issue Tracker ticket # 343060
Also fails in rev5152 on IE8
WORKAROUND: Click on the metric in the chart. At the bottom of the screen is the Advanced Settings (Display Range Settings). It is working from this location.
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2433
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs. keyword: new = Tracking + FutureFeature + SubBug
making sure we're not missing any bugs in rhq_triage
closing per gwt effort
This issue seems to keep getting reported/hit by customers. With such a simple fix, it might be worth getting the fix committed in lieu of the GWT effort in RHQ 4 and the workaround proposed in Comment 2. The 'onclick' event for the "Advanced Settings..." link is calling the JavaScript window.open() method with an invalid 'strWindowName' parameter. <a href="#" onclick="javascript:window.open('/rhq/common/metric/advanced.xhtml','Metric Display Range Settings','width=450,height=375');">Advanced Settings...</a> Although spaces in the window name value are tolerated in many web browsers, some browsers will fail to execute the window.open() method due to the value of "Metric Display Range Settings". The window name value must be a valid identifier and therefore can not contain spaces in its name: See: https://developer.mozilla.org/en/DOM/window.open I performed a quick search of the code and it appears that this is the only place that such a thing has occurred. diff --git a/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/common/metric/MetricRenderer.java b/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/common/metric/MetricRenderer.java index 0018101..d4a44e1 100644 --- a/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/common/metric/MetricRenderer.java +++ b/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/common/metric/MetricRenderer.java @@ -129,7 +129,7 @@ public class MetricRenderer extends Renderer { writer.startElement("a", null); writer.writeAttribute("href", "#", null); writer.writeAttribute("onclick", - "javascript:window.open('/rhq/common/metric/advanced.xhtml','Metric Display Range Settings','" + "javascript:window.open('/rhq/common/metric/advanced.xhtml','MetricDisplayRangeSettings','" + getWindowOptions() + "');", null); if (rangePreferences.readOnly) { writer.write("Edit Settings...");
*** Bug 574769 has been marked as a duplicate of this bug. ***
commit 6b251b7c1d4c7f8f32ea49df17732d72ab06adde release-3 branch
Tested in JON 2.4.1 Browser IE-7/8 "Advanced Settings" links of monitoring tab of a resource shows pop-up to change the time interval and it works fine.
Has been verified loong time ago