Closed pilhuhn closed 8 years ago
right, it can be replicated also with curl
curl --user jdoea:password -s -H "Accept: application/json" -H "Content-Type: application/json" 'http://localhost:8080/hawkular/inventory/feeds/' | less
It's probably Keycloak, not the inventory itself, I can look into it. Other option would be to have some kind of interceptor in the ruby gem layer.
Let's leave this open for the moment and revisit once Hawkular-services has transitioned to use JAAS
This is not Keycloak-specific, this is returned by Wildfly itself. So, this will still be true for a JAAS scenario. Ideally, the party making the HTTP call would check the HTTP status code before trying to parse the response body.
If you run
Then you will see that the exception on console is some html crap from WF, that does not honor the supplied accept header.
We need to catch that and return something that makes sense. Similar if we run in a connection exception (wrong port, host unreachable, ... )
See https://github.com/ManageIQ/manageiq/issues/8239