Details
-
Bug
-
Resolution: Won't Do
-
Critical
-
None
-
12.0.0.Final
-
None
-
Workaround Exists
-
Description
As described in https://github.com/wildfly/wildfly/issues/11309
I can not get some subsystems info data with the HTTP management API working with
======================================
"product-version" => "12.0.0.Final",
"product-community-identifier" => "Product",
"product-home" => "/usr/local/wildfly-12.0.0.Final",
"standalone-or-domain-identifier" => "HOST_CONTROLLER",
"host-operating-system" => "Debian GNU/Linux 8 (jessie)}}
===============
This the a activemq POST request with curl and its error
--------8<----------------------------------------8<----------------------
root@snmpcoldev01:~# curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '
,"operation":"read-children-resources","child-type":"jms-queue","include-runtime":"true","json.pretty":1,"recursive-depth":2}' -u admin
Enter host password for user 'admin':
HTTP/1.1 401 Unauthorized
Connection: keep-alive
WWW-Authenticate: Digest realm="ManagementRealm", nonce="ABCwnAAANoo77ka2vPx9H1LY0IuT5cmkcn5HWBS88gigGzT786K6qnnpMAk=", opaque="00000000000000000000000000000000", algorithm=MD5, qop=auth
X-Frame-Options: SAMEORIGIN
Content-Length: 77
Content-Type: text/html
Date: Sat, 02 Jun 2018 08:05:53 GMT
HTTP/1.1 500 Internal Server Error
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
Content-Type: application/json; charset=utf-8
Content-Length: 103
Date: Sat, 02 Jun 2018 08:05:53 GMT
"java.io.IOException: org.jboss.dmr.stream.ModelException: Unexpected content following the DMR
-------->8---------------------------------------->8----------------------
And this the query with the GUI client
Also with undertow subsystem
--------8<----------------------------------------8<----------------------
root@snmpcoldev01:~# curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"address":
,"include-runtime":"true","json.pretty":1,"operation":"read-resource","recursive-depth":0}' -u admin
Enter host password for user 'admin':
HTTP/1.1 401 Unauthorized
Connection: keep-alive
WWW-Authenticate: Digest realm="ManagementRealm", nonce="ABC0jwAAN04NaeQD9tlEeeNzizRu5PGuUY9Adi18uuLUzOM1RZNHWkCqnc4=", opaque="00000000000000000000000000000000", algorithm=MD5, qop=auth
X-Frame-Options: SAMEORIGIN
Content-Length: 77
Content-Type: text/html
Date: Sat, 02 Jun 2018 08:19:54 GMT
HTTP/1.1 500 Internal Server Error
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
Content-Type: application/json; charset=utf-8
Content-Length: 302
Date: Sat, 02 Jun 2018 08:19:54 GMT
{
"outcome" : "failed",
"failure-description" : "WFLYCTL0030: No resource definition is registered for address [\n (\"host\" => \"master\"),\n (\"server\" => \"default-server\"),\n (\"subsystem\" => \"undertow\"),\n (\"http-listener\" => \"default\")\n]",
"rolled-back" : true
}
-------->8---------------------------------------->8----------------------
Here Image of the GUI management query.