Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12987

Unable to use principal name with spaces within the simple-permission-mapper (Elytron)

    XMLWordPrintable

Details

    • Hide
      [standalone@localhost:9990 /] /subsystem=elytron/simple-permission-mapper=anonymous-permission-mapper:list-add(name=permission-mappings[0].principals, value="John Doe")
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      [standalone@localhost:9990 /] /subsystem=elytron/simple-permission-mapper=anonymous-permission-mapper:read-resource
      {
          "outcome" => "success",
          "result" => {
              "mapping-mode" => "first",
              "permission-mappings" => [{
                  "principals" => [
                      "anonymous",
                      "John Doe"
                  ],
                  "permissions" => [{"class-name" => "org.wildfly.security.auth.permission.LoginPermission"}]
              }]
          },
          "response-headers" => {"process-state" => "reload-required"}
      }
      [standalone@localhost:9990 /] reload
      [standalone@localhost:9990 /] /subsystem=elytron/simple-permission-mapper=anonymous-permission-mapper:read-resource
      {
          "outcome" => "success",
          "result" => {
              "mapping-mode" => "first",
              "permission-mappings" => [{
                  "principals" => [
                      "anonymous",
                      "John",
                      "Doe"
                  ],
                  "permissions" => [{"class-name" => "org.wildfly.security.auth.permission.LoginPermission"}]
              }]
          }
      }
      
      Show
      [standalone@localhost:9990 /] /subsystem=elytron/simple-permission-mapper=anonymous-permission-mapper:list-add(name=permission-mappings[0].principals, value= "John Doe" ) { "outcome" => "success" , "response-headers" => { "operation-requires-reload" => true , "process-state" => "reload-required" } } [standalone@localhost:9990 /] /subsystem=elytron/simple-permission-mapper=anonymous-permission-mapper:read-resource { "outcome" => "success" , "result" => { "mapping-mode" => "first" , "permission-mappings" => [{ "principals" => [ "anonymous" , "John Doe" ], "permissions" => [{ " class- name" => "org.wildfly.security.auth.permission.LoginPermission" }] }] }, "response-headers" => { "process-state" => "reload-required" } } [standalone@localhost:9990 /] reload [standalone@localhost:9990 /] /subsystem=elytron/simple-permission-mapper=anonymous-permission-mapper:read-resource { "outcome" => "success" , "result" => { "mapping-mode" => "first" , "permission-mappings" => [{ "principals" => [ "anonymous" , "John" , "Doe" ], "permissions" => [{ " class- name" => "org.wildfly.security.auth.permission.LoginPermission" }] }] } }

    Description

      The simple-permission-mapper fails to handle principal names which include space character in them.

      The problem seems to be caused by storing the names into one attribute (space-separated values) in Elytron subsystem schema.

      Attachments

        Issue Links

          Activity

            People

              jgreene@redhat.com Jason Greene
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: