Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3791

Allow deployment initialization to have read-access to portions of the model

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • Management
    • None
    • Java 7

    • Compatibility/Configuration, User Experience

      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:

        	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")
      

      Result:
      ---------

      {
      
          "outcome" => "failed",
      
          "failure-description" => "JBAS014807: Management resource '[(\"subsystem\" => \"security\")]' not found",
      
          "rolled-back" => true
      }
      

      Cheers,

              Unassigned Unassigned
              ofbizbrazil ofbiz brazil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: