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

mapping runtime attribute of undertow returns different type than described in r-r-d

    XMLWordPrintable

Details

    Description

      there is a "mappings" runtime attribute on undertow subsystem at
      /host=master/server=server-one/deployment=batch-processing.war/subsystem=undertow/servlet=*:read-resource-description

      It reports as a LIST of STRING

      "mappings" => {
          "type" => LIST,
          "description" => "Servlet mappings",
          "expressions-allowed" => false,
          "required" => false,
          "nillable" => true,
          "min-length" => 0L,
          "max-length" => 2147483647L,
          "value-type" => STRING,
          "access-type" => "metric",
          "storage" => "runtime"
      },
      

      But the read-resource returns a INT

      /host=master/server=server-one/deployment=helloworld.war/subsystem=undertow/servlet=*:read-resource(include-runtime)
      {
          "outcome" => "success",
          "result" => [{
              "address" => [
                  ("host" => "master"),
                  ("server" => "server-one"),
                  ("deployment" => "helloworld.war"),
                  ("subsystem" => "undertow"),
                  ("servlet" => "org.jboss.as.quickstarts.helloworld.HelloWorldServlet")
              ],
              "outcome" => "success",
              "result" => {
                  "mappings" => 0,
                  "max-request-time" => 0,
                  "min-request-time" => 0,
                  "request-count" => 0,
                  "servlet-class" => "org.jboss.as.quickstarts.helloworld.HelloWorldServlet",
                  "servlet-name" => "org.jboss.as.quickstarts.helloworld.HelloWorldServlet",
                  "total-request-time" => 0
              }
          }]
      }
      

      Attachments

        Activity

          People

            mpetrov@redhat.com Michal Petrov
            cmiranda@redhat.com Claudio Miranda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: