We need to add a setting to the SystemConfiguration (RHQ_SYSTEM_CONFIG) - a flag that turns on and off the agent's ability to download the agent updates.
to test that this functionality works: 1) go to Administration > ServerConfiguration and choose the "no" radio button for the "Enable Agent Auto-Updates:" (i.e. disable auto-updates) 2) point your browser to http://localhost:7080/agentupdate/download and see that you get a HTTP error code 403 "Agent Updates Has Been Disabled" (see attached screen snapshot for the kind of thing you should see) 3) Go back to the UI and choose the "yes" radio buttno (enable auto-updates) 4) go back to your browser, submit a request to that URL again and see that you can download the binary with an HTTP status code of 200.
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1109 Imported an attachment (id=368493)