Bug 568917 - JON241: After using Manually Add - Script to a JBossAS5 resource, the child resource cannot be deleted.
Summary: JON241: After using Manually Add - Script to a JBossAS5 resource, the child r...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 3.0.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Lukas Krejci
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: 725852 jon-sprint10-bugs jon241-bugs
TreeView+ depends on / blocked
 
Reported: 2010-02-26 22:24 UTC by John Sefler
Modified: 2013-08-31 11:05 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 652646 (view as bug list)
Environment:
Last Closed: 2013-08-31 11:05:17 UTC
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2010-02-26 22:24:50 UTC
Description of problem:
After using Manually Add - Script to a JBossAS5 resource, the child resource cannot be deleted.

Version-Release number of selected component (if applicable):
JON23


How reproducible:


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:


Additional info:
https://tcms.engineering.redhat.com/case/7891/?from_plan=792

Comment 1 Charles Crouch 2010-04-27 16:08:36 UTC
This is specific case of https://bugzilla.redhat.com/show_bug.cgi?id=534750
Closing as a duplicate

*** This bug has been marked as a duplicate of bug 534750 ***

Comment 2 John Sefler 2010-05-11 20:27:41 UTC
I do NOT believe that this is a duplicate of bug 534750.
Bug 534750 has to do with uninventory/ignore of services.  That means that the service still exists on the platform, but for some reason you do not want the RHQ server to pay attention to it.

This bug is concerned with "Deletion" of a child resource from disk.  In this defect, after manually adding a child resource (a Script) to the inventory of a JBossAS5, there is no way to "Delete" it.  The GUI needs is missing the checkboxes next to the scripts.  Once the checkboxes are there, I expect that the manually added scripts can be checked and 'Delete'd.  The result will be that the script is 'rm' from the file system.

Re-opening this defect...

Comment 3 Lukas Krejci 2010-11-12 12:47:32 UTC
commit 118963a293ce0e6682d6cc951e9354dbd1bc8f60
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.

Comment 4 Lukas Krejci 2010-11-15 18:08:58 UTC
This needs to be worked on some more...

Comment 5 Lukas Krejci 2010-11-18 13:35:26 UTC
This needed more work so the commit that implements this feature in full is:

commit 689adfded272d5021c61a05e67acd87b0717205a
Author: Lukas Krejci <lkrejci>
Date:   Thu Nov 18 14:16:50 2010 +0100

    BZ 568917 - Implementing ContentFacet on ScriptComponent so that the support for uploading a new script is complete.

Comment 6 Rajan Timaniya 2010-11-25 10:15:06 UTC
Verified on JON 2.4.1 Revision: 10957 (build #28)

Observation:
There is check box next to child resources of type "Script" (uninventory is also working fine) and also on inventory tab of the JBossAS server script has check box and can be deleted.

Comment 8 Heiko W. Rupp 2013-08-31 11:05:17 UTC
This has been verified long time ago.


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