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

Not possible to add Elytron policy resource using web console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.1.0.ER3
    • 7.1.0.ER2
    • Web Console
    • None
    • Hide
      1. Start EAP with e.g standalone-full-ha config.
      2. Using web console navigate Subsystems > Security - Elytron > Other > View > Other > Policy > Add
      3. Enter jacc for Name and jacc for Default policy
      4. Save
      Show
      Start EAP with e.g standalone-full-ha config. Using web console navigate Subsystems > Security - Elytron > Other > View > Other > Policy > Add Enter jacc for Name and jacc for Default policy Save

      Adding resource using web console fails with following error:

      Unexpected HTTP response: 500
      
      Request
      {
          "name" => "jacc",
          "default-policy" => "jacc",
          "address" => [
              ("subsystem" => "elytron"),
              ("policy" => "jacc")
          ],
          "operation" => "add"
      }
      
      Response
      
      Internal Server Error
      {
          "outcome" => "failed",
          "failure-description" => "Could find policy provider with name [jacc]",
          "rolled-back" => true
      }
      

      In contrary both following CLI commands seem to work (at least somehow):

      /subsystem=elytron/policy=jacc:add(jacc-policy=[{name=jacc}])
      
      /subsystem=elytron/policy=jacc:add(jacc-policy=[{name=jacc}], default-policy=jacc)
      

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

                Created:
                Updated:
                Resolved: