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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Beta29
    • 3.0.0.Beta28
    • Security
    • None

      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.

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

              Created:
              Updated:
              Resolved: