[keycloak-user] Issue (500 Internal Server Error) with "Update the client" via Admin REST API

Juraj Janosik juraj.janosik77 at gmail.com
Thu Nov 12 04:58:06 EST 2015


Hi,

I want to announce an issue with "Update the client
<http://keycloak.github.io/docs/rest-api/index.html#_update_the_client>"
via Admin REST API.

*Description:* I want to change the description for existing client #3.

*Note:* From the documentation ("Update the client
<http://keycloak.github.io/docs/rest-api/index.html#_update_the_client>"),
body parameter attributes
are required in schema "ClientRepresentation".
Description of schema "ClientRepresentation" notes for any mandatory
attribute.

Are some parameters mandatory for successfuly running of this scenario ?

*Tested scenario:*
*Tested data:*
"Update Client":
"method":"PUT","url":"<URL>:<PORT>/auth/admin/realms/<REALM>/clients/3"
"headers":
[["Content-Type","application/json"],
["Authorization","Bearer <ACCESS_TOKEN>]]
"body":
"{
"id":"3",
"clientId":"testclient-3",
"name": "testclient-3",
"description": "TESTCLIENT-3 v.2"
}"

*Test Result:* Status Code: 500 Internal Server Error

*Some parts from console logs:*
10:35:31,591 ERROR [io.undertow.request] (default task-18) UT005023:
Exception handling request to /auth/admin/realms/universities/clients/3:
java.lang.RuntimeException: request path:
/auth/admin/realms/universities/clients/3
...
    at
org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:61)
    ... 29 more
*Caused by: java.lang.NullPointerException*
    at
org.keycloak.services.resources.admin.ClientResource.update(ClientResource.java:106)


Thanks a lot.

Best Regards,
Juraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151112/9c0a9d7d/attachment.html 


More information about the keycloak-user mailing list