Bug 1097321

Summary: archive does not get extracted to the destination path specified with destinationDir attribute if exploded=true
Product: [Other] RHQ Project Reporter: Sunil Kondkar <skondkar>
Component: ProvisioningAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.12CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1070375    
Attachments:
Description Flags
bundle none

Description Sunil Kondkar 2014-05-13 14:46:54 UTC
Description of problem:

The destinationDir attribute in rhq:archive does not support when exploded="true".

The archive is copied to the destination directory and remain as an archive. The archive is not extracted to the destination directory.

For Ex:

Below is in deploy.xml of the bundle. The archive product.zip has some files

<rhq:archive name="product.zip" exploded="true" destinationDir="/store/testdest/Bundle-Test">

When the bundle is deployed to the platform, the dir '/store/testdest/Bundle-Test' has the archive product.zip and it is not extracted.

Version-Release number of selected component (if applicable):
Version : 4.12.0-SNAPSHOT
Build Number :	a3c6d72

How reproducible:
Always

Steps to Reproduce:

1. Create a bundle with deploy.xml having destinationDir attribute and  exploded="true" in rhq:archive and the bundle has an archive ( Please refer the attached bundle )

2. Upload the bundle
3. Deploy the bundle to platform
4. Verify the destination directory specified with destinationDir attribute

Actual results:

The archive is copied to the destination directory and remain as an archive. The archive is not extracted to the destination directory.

Expected results:

The archive should be extracted to the destination directory when explode=true.

Additional info:

Comment 1 Sunil Kondkar 2014-05-13 14:47:30 UTC
Created attachment 895167 [details]
bundle