Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2936

CLI parse blank string in command as undefined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Beta27
    • 3.0.0.Beta25
    • CLI
    • None

      CLI parse following command:

      /subsystem=elytron/constant-permission-mapper=test2:add(permissions=[{class-name="abc",action="",target-name=""}])
      

      as:

      {
          "address" => [
              ("subsystem" => "elytron"),
              ("constant-permission-mapper" => "test2")
          ],
          "operation" => "add",
          "permissions" => [{
              "class-name" => "abc",
              "action" => undefined,        <=== should be ""
              "target-name" => undefined    <=== should be ""
          }]
      }
      

      Blank strings are interpreted as undefined value by CLI parser.

      Problem is somewhere in wildfly-core/cli

            jdenise@redhat.com Jean Francois Denise
            jkalina@redhat.com Jan Kalina (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: