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

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Done
    • None
    • 11.0.0.Final
    • 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" ]} }

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved: