[
https://issues.jboss.org/browse/WFCORE-3041?page=com.atlassian.jira.plugi...
]
Brian Stansberry reassigned WFCORE-3041:
----------------------------------------
Assignee: Brian Stansberry (was: Michal Petrov)
[~michpetrov] I want to take this one, because while the work to get this correct is
reasonable, we also have to deal with the fact that we already released this API in a
.Final release of WildFly Core, so I'm going to have to do a fair amount of black
magic stuff to allow it to work compatibly with what we released. If this wasn't a
last minute Blocker I'd be happy to work through the black magic with you, but, well,
it is last minute. :)
Thanks for picking this up and looking at it! If you hadn't we wouldn't have
corrected it in time.
Cannot add policy resource with no parameter
--------------------------------------------
Key: WFCORE-3041
URL:
https://issues.jboss.org/browse/WFCORE-3041
Project: WildFly Core
Issue Type: Bug
Components: Security
Reporter: Claudio Miranda
Assignee: Brian Stansberry
Priority: Blocker
Fix For: 3.0.5.Final
subsystem=elytron/policy resources has no required attributes, but it fails to add a
resource with no parameters.
{code}
/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
}}}}}}
}
{code}
To add is necessary to inform either custom-policy or jacc-policy
{code}
/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"
}
}}}}}}
}
{code}
There is also a problem related to "default-policy" being set to a non existent
policy.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)