Bug 603646

Summary: Exception on click to re-enable
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: Core UIAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: low    
Version: 3.0.0CC: lkrejci
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:51:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Heiko W. Rupp 2010-06-14 09:00:38 UTC
Have an alert definition be disabled and then go to the definition page.
In the upper right corner is a link to "re-enable".
Clicking this yields an exception

Target Url e.g.:
http://pickeldi:7080/alerts/RenableAlertDefinition.do?id=10001&a=&mode=viewRoles&ad=10011

Stack trace:
java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:470) at java.lang.Integer.(Integer.java:660) at org.rhq.enterprise.gui.legacy.action.resource.common.monitor.alerts.ReenableAlertDefinitionAction.execute(ReenableAlertDefinitionAction.java:58) at org.rhq.enterprise.gui.legacy.action.BaseRequestProcessor.processActionPerform(BaseRequestProcessor.java:46) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at

Comment 1 Heiko W. Rupp 2010-06-14 09:03:14 UTC
Parameter 'a' is not set

when coming from http://pickeldi:7080/alerts/Config.do?mode=viewRoles&ad=10011&id=10001

JON beta1 build

Comment 2 Heiko W. Rupp 2010-06-15 09:10:43 UTC
5c1450b on release-3.0.0 branch

this disables the 're-enable' function for definitions. Users need to click on 'back to definitons' and then issue the 'enable' function there.

Comment 3 Corey Welton 2010-06-21 14:22:29 UTC
QA notes:  This is accessible by clicking on an alert via the alerts view -- not by going in to the alert definition itself.

Comment 4 Corey Welton 2010-06-21 14:22:56 UTC
QA Verified - the "enable this alert" link now works.

Comment 5 Corey Welton 2010-08-12 16:51:48 UTC
Mass-closure of verified bugs against JON.

Comment 6 Lukas Krejci 2010-11-11 14:29:11 UTC
*** Bug 602184 has been marked as a duplicate of this bug. ***