Bug 769031 - purging with managedRootDir=false should not purge everything
Summary: purging with managedRootDir=false should not purge everything
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Provisioning
Version: 4.2
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-19 17:27 UTC by John Mazzitelli
Modified: 2022-04-23 08:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2011-12-19 17:27:29 UTC
this needs to be tested:

if I have a bundle deployed with managedRootDir=false, and I elect to purge that bundle, only the bundle files should be removed - all files that are external to the bundle should remain.

For example, suppose I have an EAP instance installed (non-bundle install), and I have things deployed in the deploy/ directory:

/opt/eap5/server/default/deploy/jmx-console.war

for example.

Now suppose I have a bundle with manageRootDir=false and I put it in deploy/

/opt/eap5/server/default/deploy/my-bundle.war

where the bundle distribution has "my-bundle.war" as the top directory (in other words, the destination directory was "deploy/").

If I purge that bundle, the deploy/my-bundle.war should go away, but jmx-console.war (and all other things in deploy/) should remain intact and left alone.

Question: does it?

We need to test this scenario and make sure it works as we think it should. Otherwise, we need to fix it.

Comment 1 Charles Crouch 2011-12-19 17:28:41 UTC
This should be tested on JON2.4.1 and JON3.0.0

Comment 2 John Mazzitelli 2011-12-19 22:08:56 UTC
(In reply to comment #1)
> This should be tested on JON2.4.1 and JON3.0.0

This purge feature did not exist in JON 2.4.1 in the first place, so, there is nothing to test :)

Comment 3 John Mazzitelli 2011-12-19 22:23:06 UTC
I think this is supported... looking at code in org.rhq.plugins.ant.AntBundlePluginComponent it does look at the manageRootDir setting.


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