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

Cannot add policy resource with no parameter

XMLWordPrintable

      subsystem=elytron/policy resources has no required attributes, but it fails to add a resource with no parameters.

      /profile=full/subsystem=elytron/policy=policy_test:add
      {
          "outcome" => "failed",
          "result" => undefined,
          "failure-description" => {"WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => {"server-group" => {"main-server-group" => {"host" => {"master" => {"server-one" => "Could find policy provider with name [policy_test]"}}}}}},
          "rolled-back" => true,
          "server-groups" => {"main-server-group" => {"host" => {"master" => {"server-one" => {"response" => {
              "outcome" => "failed",
              "failure-description" => "Could find policy provider with name [policy_test]",
              "rolled-back" => true
          }}}}}}
      }
      
      

      To add is necessary to inform either custom-policy or jacc-policy

      /profile=full/subsystem=elytron/policy=policy2:add(jacc-policy=[{name=policy2}])
      {
          "outcome" => "success",
          "result" => undefined,
          "server-groups" => {"main-server-group" => {"host" => {"master" => {"server-one" => {"response" => {
              "outcome" => "success",
              "response-headers" => {
                  "operation-requires-reload" => true,
                  "process-state" => "reload-required"
              }
          }}}}}}
      }
      

      There is also a problem related to "default-policy" being set to a non existent policy.

              bstansbe@redhat.com Brian Stansberry
              cmiranda@redhat.com Claudio Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: