Darran Lofthouse created WFCORE-600:
---------------------------------------
Summary: CLI unable to parse op where a list contains a list.
Key: WFCORE-600
URL:
https://issues.jboss.org/browse/WFCORE-600
Project: WildFly Core
Issue Type: Bug
Components: CLI
Reporter: Darran Lofthouse
Assignee: Alexey Loubyansky
Fix For: 1.0.0.Beta1
The CLI is incorrectly parsing commands where the parameter contains a list that contains
a list.
Take the following command: -
{code}
./subsystem=elytron/provider-loader=pkcs#11:add(register=false, providers=[{
class-names=[sun.security.pkcs11.SunPKCS11], module=sun.jdk,
property-list=[{key=a,value=b},{key=b,value=c}] }])
{code}
The following operation is created: -
{code}
{
"address" => [
("subsystem" => "elytron"),
("provider-loader" => "pkcs#11")
],
"operation" => "add",
"register" => false,
"providers" => [{
"class-names" => ["sun.security.pkcs11.SunPKCS11"],
"module" => "sun.jdk",
"property-list" => [
{
"key" => "a",
"value" => "b"
},
{
"key" => "b",
"value" => "c"
},
"}"
]
}]
}
{code}
Note the additional "}" inside property-list.
Change the order of parameters to now be: -
{code}
./subsystem=elytron/provider-loader=pkcs#11:add(register=false, providers=[{
class-names=[sun.security.pkcs11.SunPKCS11],
property-list=[{key=a,value=b},{key=b,value=c}], module=sun.jdk }])
{code}
And the resulting operation is: -
{code}
{
"address" => [
("subsystem" => "elytron"),
("provider-loader" => "pkcs#11")
],
"operation" => "add",
"register" => false,
"providers" => [
{
"key" => "a",
"value" => "b"
},
{
"key" => "b",
"value" => "c"
},
("module" => "sun.jdk }")
]
}
{code}
Here the content of providers is completely wrong.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)