Bug 817152

Summary: RFE: [as7] Support retrieving content on exploded deployments
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: PluginsAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: hrupp
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
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: 707223    

Description Lukas Krejci 2012-04-27 20:40:05 UTC
Description of problem:
Currently (as of resolving bug 816593) we support working with content of archived deployments. It would be good, if more complex, to add support for retrieving content of exploded deployments, too.

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


How reproducible:
always

Steps to Reproduce:
1. Deploy a WAR file to AS7 exploded
2. Let RHQ discover it
3. in the CLI, try:
PackageFactory.getResource(<ID_OF_THE_WAR_RESOURCE>).retrieveBackingContent('file_to_save');
  
Actual results:
The content is not retrieved

Expected results:
The plugin should clever enough to zip up the exploded deployment and return the zip as the content of the deployment.

Additional info:
The initial implementation (in bug 816593) didn't take this into account. We don't support deploying exploded. It is also not very clear, what should we report as the list of discovered packages when discovering packages of an exploded deployment - should it be just the top level directory or every file underneath?