Bug 827571 - jboss-as-cp script is missing argument placeholder for c optarg
Summary: jboss-as-cp script is missing argument placeholder for c optarg
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jboss-as
Version: 17
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Marek Goldmann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-01 19:09 UTC by Dan Allen
Modified: 2014-07-25 03:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-04 10:28:28 UTC


Attachments (Terms of Use)

Description Dan Allen 2012-06-01 19:09:05 UTC
Description of problem:

The jboss-as-cp script is missing the argument placeholder for the c optarg.

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

7.1.1-2.fc17-noarch

How reproduciable:

Any time you use the -c argument with a value (or otherwise), the command fails to copy a configuration file from the /usr/share/jboss-as/docs/examples/configs directory. 

Steps to Reproduce:
1. Execute:
jboss-as-cp -l $HOME/jboss-as-user-instance -c standalone-web.xml

2. Observe the message:

cp: omitting directory `/usr/share/jboss-as/docs/examples/configs/'
  
Actual results:

The config specified on the commandline (in this case standalone-web.xml) should be copied from /usr/share/jboss-as/docs/examples/configs (in this case /usr/share/jboss-as/docs/examples/configs/standalone-web.xml) to the configuration directory of the user instance being created (in this case $HOME/jboss-as-user-instance/configuration/)

Expected results:

The config specified on the commandline (in this case standalone-web.xml) should be copied to the configuration directory of the user instance being created (in this case $HOME/jboss-as-user-instance/configuration

Additional info:

The problem is that the colon is missing after the optarg in the following line in the script:

while getopts “hcl:” OPTION

It should be:

while getopts “hc:l:” OPTION

As a result of the missing colon, the value of the STANDALONE_XML variable is empty.

Comment 1 Marek Goldmann 2012-06-04 10:16:12 UTC
I can confirm this. It'll be fixed soon.

Comment 2 Marek Goldmann 2012-06-04 10:28:28 UTC
Fixed in upstream:

https://github.com/fedora-jboss-as/jboss-as-rpm/commit/54e0c87067da3c39ce30ad6812fd944d53e7eb63

It'll be available in jboss-as-7.1.1-4.

Comment 3 Fedora Update System 2012-07-04 09:41:23 UTC
jboss-as-7.1.1-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/jboss-as-7.1.1-4.fc17

Comment 4 Fedora Update System 2012-07-23 20:28:01 UTC
jboss-as-7.1.1-4.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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