[jboss-jira] [JBoss JIRA] (WFCORE-600) CLI unable to parse op where a list contains a list.
Darran Lofthouse (JIRA)
issues at jboss.org
Mon Mar 16 15:37:19 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darran Lofthouse updated WFCORE-600:
------------------------------------
Description:
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, also the value for 'module' is wrong and contains an additional '}'.
was:
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.
> 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
> Labels: affects_elytron
> 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, also the value for 'module' is wrong and contains an additional '}'.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list