Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7097

The constant-role-mapper is not able to handle role name with space in it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 11.0.0.Final
    • None
    • Security
    • None
    • Hide
      [standalone@localhost:9990 /] /subsystem=elytron/constant-role-mapper=test:add(roles=["JBoss Admin"])
      {"outcome" => "success"}
      [standalone@localhost:9990 /] /subsystem=elytron/constant-role-mapper=test:read-resource
      {
          "outcome" => "success",
          "result" => {"roles" => ["JBoss Admin"]}
      }
      [standalone@localhost:9990 /] reload
      [standalone@localhost:9990 /] /subsystem=elytron/constant-role-mapper=test:read-resource
      {
          "outcome" => "success",
          "result" => {"roles" => [
              "JBoss",
              "Admin"
          ]}
      }
      
      Show
      [standalone@localhost:9990 /] /subsystem=elytron/constant-role-mapper=test:add(roles=[ "JBoss Admin" ]) { "outcome" => "success" } [standalone@localhost:9990 /] /subsystem=elytron/constant-role-mapper=test:read-resource { "outcome" => "success" , "result" => { "roles" => [ "JBoss Admin" ]} } [standalone@localhost:9990 /] reload [standalone@localhost:9990 /] /subsystem=elytron/constant-role-mapper=test:read-resource { "outcome" => "success" , "result" => { "roles" => [ "JBoss" , "Admin" ]} }

      Adding a role with a space in the name results in 2 roles (for parts of the name) added. The problem is visible after server reload. E.g. adding role "JBoss Admin" results in 2 roles assigned "JBoss" and "Admin"

      Expected behavior
      Spaces in role name must be supported and correctly handled. E.g. After adding "JBoss Admin" and server reload "JBoss Admin" is assigned.

              jkalina@redhat.com Jan Kalina (Inactive)
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: