Hide Forgot
Recent changes to agent manager require user auth to get an agent client. Need to go through all references/callers to agentManagerBean.getAgentClient(Subject, ...) so they pass overlord in. Otherwise, the call will erroneously fail unless you are rhqadmin, some other admin user or you have SETTINGS global perm, which is not the intent.
I fixed BundleManagerBean, but there are others that need to change -eclipse shows me these (see calls to getAgentClient in these methods): org.rhq.enterprise.server.operation.OperationManagerBean.cancelResourceOperation(Subject, ResourceOperationHistory, boolean) org.rhq.enterprise.server.support.SupportManagerBean.getSnapshotReportStream(Subject, int, String, String) org.rhq.enterprise.server.operation.ResourceOperationJob.invokeOperationOnResource(ResourceOperationSchedule, ResourceOperationHistory, OperationManagerLocal) org.rhq.enterprise.server.resource.ResourceManagerBean.uninventoryResource(Subject, int)
Fixed in master: Commit hash: 20771d02832
verified RHQ 4.0 community release as follows: created a role with MANAGE_INVENTORY permissions. created a new user 'joe' with the aforementioned role. tested uninventory of resources, and creating/triggering operations. reviewed logs for any silent errors. looks good.
Bookkeeping - closing bug - fixed in recent release.