This is a clone of bug 568917 to track its resolution in RHQ 4. Description of problem: After using Manually Add - Script to a JBossAS5 resource, the child resource cannot be deleted. Steps to Reproduce: 1. From within an inventoried JBossAS5 server... 2. Goto INVENTORY / OVERVIEW 3. Manually Add -Script create a dummy.sh script on the patform of the JBossAS5 server and enter the Path to it. 4. Now that the script has been successfully added as a child resource.... 5. Try to DELETE it... Actual results: There is no checkbox next to child resources of type "Script". Moreover, because you cannot uninventory a service, there is no way to get rid of the inventoried child resource script service. Expected results:
commit 9ce5c9a040539d5155698ccef6a8dc19bdb37829 Author: Lukas Krejci <lkrejci> Date: Fri Nov 12 13:19:25 2010 +0100 BZ 568917 - Enable creation of as5 scripts by uploading them to the server's bin. Also added support to delete arbitrary script. Only scripts with the supported file extensions can be successfully deployed so that they are auto-discovered later and thus appear in the inventory after their uploading.
This needed more work so the commit that implements this feature in full is: commit 27f80c3dedd8d7c1bb3a8725682aa51e4285d3a3 Author: Lukas Krejci <lkrejci> Date: Thu Nov 18 14:21:43 2010 +0100 BZ 568917 - Implementing ContentFacet on ScriptComponent so that the support for uploading a new script is complete.
Verified on rhq-server-4.0.0-SNAPSHOT build#725. Manually added a script with resource tree right click option. There is an 'IUninventory' button at "Jbossas resource->Resources->Scripts->Inventory->Members" screen. User is able to select and uninventory the script There is a delete button at "Jbossas resource->Inventory->Child Resources" screen. User is able to select and delete the manually added script.
Bookkeeping - closing bug - fixed in recent release.