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

Unable to force CLI to execute a low level command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha6
    • 3.0.0.Alpha5
    • CLI
    • None

      I cannot get this operation to execute, even if I set validate-operation-requests to false in jboss-cli.xml:

      [standalone@embedded /] /subsystem=datasources/bogus=*:read-resource-description
      Failed to get the list of the operation properties: "WFLYCTL0030: No resource definition is registered for address [
          ("subsystem" => "datasources"),
          ("bogus" => "*")
      ]"
      

      It is important that the CLI allows users to send whatever low level ops they wish to the server if they turn off verification. The server validates requests itself, and in some cases can be coded to be lenient about things (e.g. to let previous 'wrong' things work.) We don't want the CLI to get in the way of that by doing client side validation that cannot be turned off.

      Problem seems to be this in the Util class:

          public static ModelNode toOperationRequest(CommandContext ctx,
                  ParsedCommandLine parsedLine, Attachments attachments)
                  throws CommandFormatException {
              return toOperationRequest(ctx, parsedLine, attachments, true);
          }
      

      That 'true' param results in the CLI trying to do a background read-operation-description and failing the op if unsuccessful.

              olubyans@redhat.com Alexey Loubyansky
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: