Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1354

Not possible to add permissions of permission-mappings of Elytron simple-permission-mapper

    XMLWordPrintable

Details

    • Hide

      Using web console navigate to Configuration: Subsystems > Subsystem: Security - Elytron > Settings: Mapper / Decoder > Permission Mapper > Simple Permission Mapper > (create and) select one > Permission Mapping > Add

      Show
      Using web console navigate to Configuration: Subsystems > Subsystem: Security - Elytron > Settings: Mapper / Decoder > Permission Mapper > Simple Permission Mapper > (create and) select one > Permission Mapping > Add

    Description

      New Permission Mapping dialog has for permissions only textarea field expecting list of strings separated by line ends but it's a list of objects so even if user tries to enter string with object like notation

      {"class-name" => "org.wildfly.security.auth.permission.LoginPermission"}
      

      results is failure:

      Unexpected HTTP response: 500
      
      Request
      {
          "operation" => "list-add",
          "address" => [
              ("subsystem" => "elytron"),
              ("simple-permission-mapper" => "anonymous-permission-mapper")
          ],
          "name" => "permission-mappings",
          "value" => {
              "principals" => undefined,
              "roles" => undefined,
              "permissions" => ["{\"class-name\" => \"org.wildfly.security.auth.permission.LoginPermission\"}"]
          }
      }
      
      Response
      
      Internal Server Error
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0097: Wrong type for 'permissions'. Expected [EXPRESSION, OBJECT] but was STRING",
          "rolled-back" => true
      }
      

      Attachments

        Issue Links

          Activity

            People

              cmiranda@redhat.com Claudio Miranda
              pjelinek@redhat.com Pavel Jelinek
              Pavel Jelinek Pavel Jelinek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: