Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3093

Unclear failure description when removing elytron policy referenced as the default-policy

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.0.Beta28
    • Fix Version/s: 3.0.0.Beta29
    • Component/s: Security
    • Labels:
      None

      Description

      when user wants to remove a jacc-policy referenced as default-policy, for example

      /profile=full/subsystem=elytron/policy=policy1:read-resource
      {
          "outcome" => "success",
          "result" => {
              "custom-policy" => undefined,
              "default-policy" => "policy-teste",
              "jacc-policy" => [
                  {
                      "name" => "policy-teste",
                      "module" => "modulo-policy",
                      "configuration-factory" => "OutroFactory1",
                      "policy" => "PolicyM2"
                  },
                  {
                      "name" => "policy123",
                      "module" => "modulo-123",
                      "configuration-factory" => "OutroFactory1",
                      "policy" => "PolicyM2"
                  },
                  {
                      "name" => "outro_policy123",
                      "module" => "modulo-123",
                      "configuration-factory" => "OutroFactory1",
                      "policy" => "PolicyM2"
                  }
              ]
          }
      }
      
      /profile=full/subsystem=elytron/policy=policy1:list-remove(name=jacc-policy,index=0)
      {
          "outcome" => "failed",
          "failure-description" => {"domain-failure-description" => "Could find policy provider with name [policy-teste]"},
          "rolled-back" => true
      }
      

      The message should say the jacc-policy is used as default-policy.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mstefank Martin Stefanko
                  Reporter:
                  mstefank Martin Stefanko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: