[jboss-jira] [JBoss JIRA] (AS7-5627) Scripts need to preserve arguments boundary
Cheng Fang (JIRA)
jira-events at lists.jboss.org
Tue Sep 25 10:15:36 EDT 2012
[ https://issues.jboss.org/browse/AS7-5627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721253#comment-12721253 ]
Cheng Fang edited comment on AS7-5627 at 9/25/12 10:14 AM:
-----------------------------------------------------------
Other scripts like domain.xml, jboss-cli.sh, *.bat may also have this problem.
I played with standalone.sh a bit, and found the 2 ways to make it work, though haven't thoroughly tested it.
1, remove the use the eval, and run java command directly. But I'm not sure its impact on other parts of the system. I suppose eval is there for good purpose.
2, still use eval, but change "$@" to '"$@"' (twice quote it). I guess one is consumed by eval command, and the other by java command. Or better yet, escape the double-quote: \"$@\"
was (Author: cfang):
Other scripts like domain.xml, jboss-cli.sh, *.bat may also have this problem.
I played with standalone.sh a bit, and found the 2 ways to make it work, though haven't thoroughly tested it.
1, remove the use the eval, and run java command directly. But I'm not sure its impact on other parts of the system. I suppose eval is there for good purpose.
2, still use eval, but change "$@" to '"$@"' (twice quote it). I guess one is consumed by eval command, and the other by java command.
> Scripts need to preserve arguments boundary
> -------------------------------------------
>
> Key: AS7-5627
> URL: https://issues.jboss.org/browse/AS7-5627
> Project: Application Server 7
> Issue Type: Bug
> Components: Scripts
> Affects Versions: 7.2.0.Alpha1
> Reporter: Cheng Fang
> Assignee: Brian Stansberry
>
> When certain args are passed to jboss module Main class, they lost their orginal boundary, and jboss module can only tell one from another using space as the delimiter. For example:
> standalone.sh -Dtitle="Vice President"
> {noformat}
> 23:37:10,229 INFO [org.jboss.modules] (main) JBoss Modules version 1.1.3.GA
> JBAS015801: Invalid option 'President'Usage: ./domain.sh [args...]
> where args include:
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list