[
https://issues.jboss.org/browse/WFLY-3791?page=com.atlassian.jira.plugin....
]
Brian Stansberry resolved WFLY-3791.
------------------------------------
Fix Version/s: (was: Awaiting Volunteers)
Resolution: Rejected
I expect this is failing during boot. It might kind of work if the app is deployed
post-boot.
I say "kind of work" as the read would not see the unpublished copy of the
configuration model that is associated with the management request that triggered
deployment. That copy is not visible outside the context of that management request until
it is committed, and it's not committed until lifecycle methods in the deployed
components are completed.
It wouldn't work during boot because the subsystem configuration it's reading only
exists in that unpublished model.
This never worked differently than I describe, and we are not going to make it work.
Therefore, I'm rejecting this feature request.
Allow deployment initialization to have read-access to portions of
the model
----------------------------------------------------------------------------
Key: WFLY-3791
URL:
https://issues.jboss.org/browse/WFLY-3791
Project: WildFly
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Domain Management
Environment: Java 7
Reporter: ofbiz brazil
Hello,
When there's a client trying to list a node for a security section, Wildfly says it
does not exist but on Jboss 7.1.1 it works fine.
Java Code:
{code:java}
final ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set("read-resource");
request.get("recursive").set(true);
request.get(ClientConstants.OP_ADDR).add("subsystem",
"security");
final ModelControllerClient client =
ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999);
final ModelNode response = client.execute(new OperationBuilder(request).build());
final String section =
response.get(ClientConstants.RESULT).get("security-domain")
.get("pw_MSSQL_CAS_DS")
{code}
Result:
---------
{code}
{
"outcome" => "failed",
"failure-description" => "JBAS014807: Management resource
'[(\"subsystem\" => \"security\")]' not found",
"rolled-back" => true
}
{code}
Cheers,
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)