[
https://issues.jboss.org/browse/WFCORE-4041?page=com.atlassian.jira.plugi...
]
Brian Stansberry updated WFCORE-4041:
-------------------------------------
Component/s: Management
[~jmesnil] FYI.
This isn't really anything specific to the elytron subsystem. It's a general
problem with how ReadAttributeHandler is dealing with attributes that use
ObjectTypeAttributeDefinition.
This is not at all a simple fix. It likely requires a rethink of how RAH extracts values
from the model, and perhaps an addition to the AttributeDefinition API to allow RAH to
delegate that to the AD.
BTW, the request in the description is not expected to show the 'plain-text'
attribute as the config doesn't explicitly define it. To see undefined attribute that
have defaults, the request would need to be:
{code}
/subsystem=elytron/properties-realm=ManagementRealm:read-resource(include-defaults=true)
{code}
That doesn't work either though, which is the bug. :)
This illustrates that things work fine if the 'plain-text' is defined:
{code}
[standalone@embedded /]
/subsystem=elytron/properties-realm=ManagementRealm:write-attribute(name=users-properties.plain-text,value=false)
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@embedded /]
/subsystem=elytron/properties-realm=ManagementRealm:read-resource()
{
"outcome" => "success",
"result" => {
"groups-attribute" => "groups",
"groups-properties" => {
"path" => "mgmt-groups.properties",
"relative-to" => "jboss.server.config.dir"
},
"users-properties" => {
"path" => "mgmt-users.properties",
"relative-to" => "jboss.server.config.dir",
"digest-realm-name" => "ManagementRealm",
"plain-text" => false
}
},
"response-headers" => {"process-state" =>
"reload-required"}
}
{code}
ManagementRealm does now show plain-text attribute in default
read-resource output
----------------------------------------------------------------------------------
Key: WFCORE-4041
URL:
https://issues.jboss.org/browse/WFCORE-4041
Project: WildFly Core
Issue Type: Bug
Components: Management, Security
Reporter: Justin Cook
Assignee: Justin Cook
Currently running /subsystem=elytron/properties-realm=ManagementRealm:read-resource()
results in the output:
{code}
{
"outcome" => "success",
"result" => {
"groups-attribute" => "groups",
"groups-properties" => {
"path" => "mgmt-groups.properties",
"relative-to" => "jboss.server.config.dir"
},
"users-properties" => {
"path" => "mgmt-users.properties",
"relative-to" => "jboss.server.config.dir",
"digest-realm-name" => "ManagementRealm"
}
}
}
{code}
which is missing the plain-text attribute
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)