Bug 838665 - Changing selected operation does not clear out parameters sent along with request
Summary: Changing selected operation does not clear out parameters sent along with req...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.5.0
Assignee: Mike Thompson
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: rhq-uxd
TreeView+ depends on / blocked
 
Reported: 2012-07-09 17:58 UTC by Charles Crouch
Modified: 2015-02-01 23:28 UTC (History)
4 users (show)

Fixed In Version: 4.5.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-04 07:32:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Charles Crouch 2012-07-09 17:58:44 UTC
JON310

Steps to reproduce:
1) Go to the Operations > Schedules subtab for the RHQ Agent resource and hit the New button
2) Choose "Get Plugin Info" from the Operation dropdown
3) Note that the operation takes a single argument: "Plugin Name"
4) DO NOT SCHEDULE THE OPERATION
5) Choose "Get Info On All Plugins" from the Operation dropdown
6) Note that this operation does not take any arguments
7) Hit the Schedule button
8) Go find the operation in the Schedule > History subtab
9) Note that operation failed, it should have succeeded.

Failure message:
java.lang.RuntimeException: Failed to invoke operation [retrieveAllPluginInfo]
	at org.rhq.plugins.agent.AgentServerComponent.invokeOperation(AgentServerComponent.java:207)
	at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:634)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.IllegalArgumentException: Operation [retrieveAllPluginInfo] does not support params
	at org.rhq.plugins.agent.AgentServerComponent.invokeOperation(AgentServerComponent.java:203)
	... 9 more

Comment 1 Mike Thompson 2012-08-02 14:27:55 UTC
To summarize, the issue is if you go directly to the "Get Info On All Plugins" and schedule it works. However, if you first go to the "Get Plugin Info" screen first it allows you to enter parameters that are cached and sent to "Get Info On All Plugins" operation that doesn't accept any parameters and causes it to fail.

Comment 2 Mike Thompson 2012-08-02 14:31:40 UTC
master commit: 63b805d29a7b66593203de5a006770adab06e105

This was a state issue with things not getting properly cleared out when going from one operation to another.

Comment 3 Filip Brychta 2013-02-21 14:36:38 UTC
Verified on 
Version: 4.6.0-SNAPSHOT
Build Number: 2b908fa

Comment 4 Heiko W. Rupp 2013-09-04 07:32:22 UTC
Done in an old release, closing now.


Note You need to log in before you can comment on or make changes to this bug.