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

Jean-Francois Denise (JIRA) issues at jboss.org
Fri Jun 9 04:09:00 EDT 2017


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

Jean-Francois Denise reassigned WFCORE-2936:
--------------------------------------------

    Assignee: Jean-Francois Denise


> 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
>            Assignee: Jean-Francois Denise
>
> 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.*
> Problem is somewhere in *wildfly-core/cli*



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


More information about the jboss-jira mailing list