Bug 803424

Summary: Empty directory in archive.zip is not deployed with bundle
Product: [Other] RHQ Project Reporter: dsteigne
Component: ProvisioningAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2CC: dvanbale, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sample bundle none

Description dsteigne 2012-03-14 17:09:07 UTC
Created attachment 570041 [details]
sample bundle

Description of problem:
When deploying the attached bundle, the directory called "emptydirectory" doesn't get deployed. This seems to happen when the following is true:

- The empty directory is in a zip archive
- There are input properties configured and an rhq:replace is configured for that zip archive
- exploded="false" is set for the archive

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

How reproducible:
Always

Steps to Reproduce:
1) In JON UI, go to Bundles tab
2) Click "New" button
3) Check "Upload" and then "Choose File"
4) Choose archive-test-bundle-1.0.zip
5) Click Next
6) Click Next
7) Click Finish
8) Click on the newly imported bundle and select "Deploy"
9) Choose a platform destination to deploy to (e.g. a server running Fedora or RHEL)
10) Specify a deployment directory (e.g. opt/test)
11) Click Next
12) Leave "Latest Version [1.0]" selecte
13) Click Next
14) Enter a value for servlet.name
15) click Next
16) click Next
17) click Finish
18) Note that, even though the Archive.zip that is in the deployed bundle has sub-directories called "emptydirectory" and "fulldirectory" under directory1, only "fulldirectory" is actually deployed with the archive.

Comment 1 Mike Foley 2012-03-19 16:19:01 UTC
per BZ triage (asantos, ccrouch, loleary, mfoley)