Bug 1014921

Summary: Regression in CLI deployment archive introduced by bz991469
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Ivo Studensky <istudens>
Component: CLIAssignee: Ivo Studensky <istudens>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: high Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: brian.stansberry, istudens, jdoyle, ssilvert
Target Milestone: ER6   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:19:49 UTC 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:
Attachments:
Description Flags
Test CLI deployment archive none

Description Ivo Studensky 2013-10-03 06:34:56 UTC
Description of problem:
A regression has been introduced by the bz991469 fix. It breaks module add command included in a CLI module archive. For details see

https://issues.jboss.org/browse/WFLY-1913?focusedCommentId=12808246&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12808246

Version-Release number of selected component (if applicable):
EAP 6.2.0.ER1

How reproducible:
Create a CLI module archive which includes 'module add' command involving a resource taken from the module archive. An example of such an archive can be found at WFLY-1913.

Comment 1 Ivo Studensky 2013-10-04 10:31:27 UTC
Relevant PR:

https://github.com/jbossas/jboss-eap/pull/509

Comment 3 JBoss JIRA Server 2013-10-07 08:16:53 UTC
Ivo Studensky <istudens> made a comment on jira WFLY-1913

Merged.

Comment 6 Petr Kremensky 2013-10-17 10:33:54 UTC
Created attachment 813260 [details]
Test CLI deployment archive

Comment 7 Petr Kremensky 2013-10-17 10:34:53 UTC
Hi Ivo,
How about the error message after undeploy operation?
ERROR [org.jboss.as.cli.CommandContext] Failed to execute archive script: JBAS014746: steps may not be null
Failed to execute archive script: JBAS014746: steps may not be null

All commands inside undeploy.scr are successfully executed, but after that this message will appear (same on win and linux, same message with 6.1.1). Is this a known issue or something wrong with CLI archive?

Just use attachment 813260 [details]
[standalone@localhost:9999 /] deploy --path=~/Downloads/install-mojarra-2.0.0.cli
[standalone@localhost:9999 /] undeploy --path=~/Downloads/install-mojarra-2.0.0.cli
Failed to execute archive script: JBAS014746: steps may not be null

Thanks.

Verified on EAP 6.2.0.ER6. 'module add' command inside CLI deployment archive now works on Windows as expected.

Comment 9 Ivo Studensky 2014-06-17 08:52:49 UTC
Petr, your deploy.scr/undeploy.src files are missing any 'deploy' step which is the cause of the warning you see.