From ac9268bd48e6d3defa52e06090f3a29b24a051d2 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 13 Jan 2017 09:56:20 +0100 Subject: [PATCH] KEYCLOAK-4192 Added missing produces annotations for update methods --- .../clientregistration/DefaultClientRegistrationProvider.java | 1 + .../clientregistration/oidc/OIDCClientRegistrationProvider.java | 1 + 2 files changed, 2 insertions(+) diff --git a/services/src/main/java/org/keycloak/services/clientregistration/DefaultClientRegistrationProvider.java b/services/src/main/java/org/keycloak/services/clientregistration/DefaultClientRegistrationProvider.java index 23c15dc22a..0b58145a18 100755 --- a/services/src/main/java/org/keycloak/services/clientregistration/DefaultClientRegistrationProvider.java +++ b/services/src/main/java/org/keycloak/services/clientregistration/DefaultClientRegistrationProvider.java @@ -62,6 +62,7 @@ public class DefaultClientRegistrationProvider extends AbstractClientRegistratio @PUT @Path("{clientId}") @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) public Response updateDefault(@PathParam("clientId") String clientId, ClientRepresentation client) { DefaultClientRegistrationContext context = new DefaultClientRegistrationContext(session, client, this); client = update(clientId, context); diff --git a/services/src/main/java/org/keycloak/services/clientregistration/oidc/OIDCClientRegistrationProvider.java b/services/src/main/java/org/keycloak/services/clientregistration/oidc/OIDCClientRegistrationProvider.java index 89f93f0166..3dd657f38a 100755 --- a/services/src/main/java/org/keycloak/services/clientregistration/oidc/OIDCClientRegistrationProvider.java +++ b/services/src/main/java/org/keycloak/services/clientregistration/oidc/OIDCClientRegistrationProvider.java @@ -101,6 +101,7 @@ public class OIDCClientRegistrationProvider extends AbstractClientRegistrationPr @PUT @Path("{clientId}") @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) public Response updateOIDC(@PathParam("clientId") String clientId, OIDCClientRepresentation clientOIDC) { try { ClientRepresentation client = DescriptionConverter.toInternal(session, clientOIDC);