[jboss-jira] [JBoss JIRA] (WFCORE-2936) CLI parse blank string in command as undefined

Jan Kalina (JIRA) issues at jboss.org
Thu Jun 8 08:44:00 EDT 2017


     [ https://issues.jboss.org/browse/WFCORE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Kalina updated WFCORE-2936:
-------------------------------
    Description: 
CLI parse following command:
{code}
/subsystem=elytron/constant-permission-mapper=test2:add(permissions=[{class-name="abc",action="",target-name=""}])
{code}
as:
{code}
{
    "address" => [
        ("subsystem" => "elytron"),
        ("constant-permission-mapper" => "test2")
    ],
    "operation" => "add",
    "permissions" => [{
        "class-name" => "abc",
        "action" => undefined,        <=== should be ""
        "target-name" => undefined    <=== should be ""
    }]
}
{code}
*Blank strings are interpreted as undefined value by CLI parser.*


  was:
CLI parse following command:
{code}
/subsystem=elytron/constant-permission-mapper=test2:add(permissions=[{class-name="abc",action="",target-name=""}])
{code}
as:
{code}
{
    "address" => [
        ("subsystem" => "elytron"),
        ("constant-permission-mapper" => "test2")
    ],
    "operation" => "add",
    "permissions" => [{
        "class-name" => "abc",
        "action" => undefined,
        "target-name" => undefined
    }]
}
{code}
*Blank strings are interpreted as undefined value by CLI parser.*




> CLI parse blank string in command as undefined
> ----------------------------------------------
>
>                 Key: WFCORE-2936
>                 URL: https://issues.jboss.org/browse/WFCORE-2936
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.0.0.Beta25
>            Reporter: Jan Kalina
>
> CLI parse following command:
> {code}
> /subsystem=elytron/constant-permission-mapper=test2:add(permissions=[{class-name="abc",action="",target-name=""}])
> {code}
> as:
> {code}
> {
>     "address" => [
>         ("subsystem" => "elytron"),
>         ("constant-permission-mapper" => "test2")
>     ],
>     "operation" => "add",
>     "permissions" => [{
>         "class-name" => "abc",
>         "action" => undefined,        <=== should be ""
>         "target-name" => undefined    <=== should be ""
>     }]
> }
> {code}
> *Blank strings are interpreted as undefined value by CLI parser.*



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list