Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3478

read-operation-description incorrect for distributed-cache

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • None
    • None

    Description

      /subsystem=infinispan/cache-container=hibernate/distributed-cache=distributed/:add(batching=false)
      {
          "outcome" => "failed",
          "failure-description" => "JBAS014749: Operation handler failed: No child 'mode' exists",
          "rolled-back" => true,
          "response-headers" => {"process-state" => "reload-required"}
      }
      

      read-operation-description doesn't show "mode" as a required field and it doesn't restrict its values with "allowed"

      /subsystem=infinispan/cache-container=hibernate/distributed-cache=*/:read-operation-description(name=add)
      {
          "outcome" => "success",
          "result" => {
              "operation-name" => "add",
              "description" => "Add a distributed cache to this cache container",
              "request-properties" => {
                  ...
                  "mode" => {
                      "type" => STRING,
                      "description" => "Sets the clustered cache mode, ASYNC for asynchronous operation, or SYNC for synchronous operation.",
                      "expressions-allowed" => false,
                      "required" => false,
                      "nillable" => true,
                      "min-length" => 1L,
                      "max-length" => 2147483647L
                  },
                  ...
              }
      }
      

      It should be:

                  "mode" => {
                      "type" => STRING,
                      "description" => "Sets the clustered cache mode, ASYNC for asynchronous operation, or SYNC for synchronous operation.",
                      "expressions-allowed" => false,
                      "required" => true,
                      "nillable" => true,
                      "min-length" => 1L,
                      "max-length" => 2147483647L
                      "allowed" => [
                        "ASYNC",
                        "SYNC"
                     ]
                  },
      

      Attachments

        Activity

          People

            rachmato@redhat.com Richard Achmatowicz
            ssilvert@redhat.com Stan Silvert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: