[
https://issues.jboss.org/browse/AS7-2676?page=com.atlassian.jira.plugin.s...
]
Martin M edited comment on AS7-2676 at 10/17/14 8:07 AM:
---------------------------------------------------------
Hello.
Looks like it is not working as expected.
Example:
script.properties:
test=aaa
my-script.cli:
/subsystem=security/security-domain=SomeDomain:add()
/subsystem=security/security-domain=SomeDomain/authentication=classic:add(login-modules=[{"code"=>"org.picketbox.datasource.security.SecureIdentityLoginModule","flag"=>"required","module-options"=>[("username"=>"someUsername"),("password"=>"${test}")]}])
And the result is:
<security-domain name="SomeDomain">
<authentication>
<login-module
code="org.picketbox.datasource.security.SecureIdentityLoginModule"
flag="required">
<module-option name="username" value="someUsername"/>
<module-option name="password" value="${test}"/>
</login-module>
</authentication>
</security-domain>
Example 2:
my-script.cli:
/subsystem=security/security-domain=${test}:add()
Result is:
<security-domain name="aaa" />
What am I missing here?
It is working only when I change <resolve-parameter-values> to true in
jboss-cli.xml.
was (Author: martin-m):
Hello.
Looks like it is not working as expected.
Example:
script.properties:
test=aaa
my-script.cli:
/subsystem=security/security-domain=SomeDomain:add()
/subsystem=security/security-domain=SomeDomain/authentication=classic:add(login-modules=[{"code"=>"org.picketbox.datasource.security.SecureIdentityLoginModule","flag"=>"required","module-options"=>[("username"=>"someUsername"),("password"=>"${test}")]}])
And the result is:
<security-domain name="SomeDomain">
<authentication>
<login-module
code="org.picketbox.datasource.security.SecureIdentityLoginModule"
flag="required">
<module-option name="username" value="someUsername"/>
<module-option name="password" value="${test}"/>
</login-module>
</authentication>
</security-domain>
Example 2:
my-script.cli:
/subsystem=security/security-domain=${ttt}:add()
Result is:
<security-domain name="aaa" />
What am I missing here?
It is working only when I change <resolve-parameter-values> to true in
jboss-cli.xml.
CLI parameter prompting
-----------------------
Key: AS7-2676
URL:
https://issues.jboss.org/browse/AS7-2676
Project: Application Server 7
Issue Type: Feature Request
Components: CLI
Affects Versions: 7.1.0.Alpha1
Reporter: Nicklas Karlsson
Assignee: Alexey Loubyansky
Priority: Minor
Fix For: EAP 6.1.0.Alpha (7.2.0.Final)
It could be handy if there was some mechanism for prompting for values (with included
default value). That way one could have a master script that could be run for a new AS and
you would be prompted for changing parameters (e.g. datsource jdbc urls, transaction
timeouts etc)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)