]
Lin Gao resolved WFLY-11127.
----------------------------
Resolution: Rejected
I am rejecting this issue, as change the request format will work.
Can not get activemq and undertow subsystem data from HTTP management
api
-------------------------------------------------------------------------
Key: WFLY-11127
URL:
https://issues.jboss.org/browse/WFLY-11127
Project: WildFly
Issue Type: Bug
Components: Management, Web (Undertow)
Affects Versions: 12.0.0.Final
Reporter: Toni Moreno
Assignee: Lin Gao
Priority: Critical
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
'{"host":"master","server":"server-two","subsystem":"messaging-activemq","server":"default"},"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
[
jboss_jms_queue_gui_query|https://user-images.githubusercontent.com/58834...]
Also with undertow subsystem
---------8<------------------------------------------8<-----------------------
root@snmpcoldev01:~# curl --digest -L -D -
http://localhost:9990/management --header
"Content-Type: application/json" -d
'{"address":{"host":"master","server":"server-two","subsystem":"undertow","server":"default-server","http-listener":"default"},"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.
[
jboss_undertow_listener_gui_query|https://user-images.githubusercontent.c...]