Merge pull request #1828 from abstractj/KEYCLOAK-2065
KEYCLOAK-2065: Update the client via Admin REST API causes 500 Internal Server Error
This commit is contained in:
commit
96fe4269ec
1 changed files with 3 additions and 1 deletions
|
@ -50,6 +50,8 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import static java.lang.Boolean.TRUE;
|
||||
|
||||
|
||||
/**
|
||||
* Base resource class for managing one particular client of a realm.
|
||||
|
@ -103,7 +105,7 @@ public class ClientResource {
|
|||
auth.requireManage();
|
||||
|
||||
try {
|
||||
if (rep.isServiceAccountsEnabled() && !client.isServiceAccountsEnabled()) {
|
||||
if (TRUE.equals(rep.isServiceAccountsEnabled()) && !client.isServiceAccountsEnabled()) {
|
||||
new ClientManager(new RealmManager(session)).enableServiceAccount(client);;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue