Created attachment 453147 [details] screenshot Description of problem: Double click on 'Import' of 'Discovery Queue' gives - Failed to import resources. Server log: 2010-10-13 14:47:11,753 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/coregui]] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void org.rhq.enterprise.gui.coregui.client.gwt.ResourceGWTService.importResources(java.lang.Integer[])' threw an unexpected exception: java.lang.RuntimeException: javax.ejb.EJBException:java.lang.IllegalArgumentException: Can only commit resources with status: [COMMITTED] -> java.lang.IllegalArgumentException:Can only commit resources with status: [COMMITTED] at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581) ... Note: 'Import button is enable even there isn't any resource in 'Discovery Queue' and on-click of 'Import' RHQ gives message - Successfully imported the selected resources Version-Release number of selected component (if applicable): RHQ-Master build#409 http://hudson-qe.rhq.rdu.redhat.com:8080/view/RHQ/job/ci-rhq-master/409/ How reproducible: Always Steps to Reproduce: 1) Install RHQ Server 2) Log-in to RHQ 3) Install RHQ Agent (wait for some time to discover resources) 4) Double click on 'Import' button of 'Discovery Queue' Actual results: Double click on 'Import' of 'Discovery Queue' gives - Failed to import resources. Expected results: After single click of 'Import', RHQ should disable the 'Import' button until new resource(s) not discovered. Additional info: Please refer attachment for screenshot and server log.
Created attachment 453150 [details] server log
With commit 2751f05 to master, all of the buttons are disabled as soon as the user clicks one of the buttons. This should make it virtually impossible for anyone other than Tommy to double-click one of the buttons.
verified through interactive testing.
Bookkeeping - closing bug - fixed in recent release.