diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/integration/resteasy/KeycloakHandlerChainCustomizer.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/integration/resteasy/KeycloakHandlerChainCustomizer.java index 54f8d14aa5..32dbc7ed06 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/integration/resteasy/KeycloakHandlerChainCustomizer.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/integration/resteasy/KeycloakHandlerChainCustomizer.java @@ -22,11 +22,8 @@ import static jakarta.ws.rs.HttpMethod.POST; import static jakarta.ws.rs.HttpMethod.PUT; import java.util.ArrayList; -import java.util.Collections; import java.util.List; import java.util.Set; -import java.util.concurrent.Executor; -import java.util.function.Supplier; import org.jboss.resteasy.reactive.common.model.ResourceClass; import org.jboss.resteasy.reactive.server.handlers.FormBodyHandler; import org.jboss.resteasy.reactive.server.model.HandlerChainCustomizer; @@ -37,14 +34,7 @@ public final class KeycloakHandlerChainCustomizer implements HandlerChainCustomi private final CreateSessionHandler TRANSACTIONAL_SESSION_HANDLER = new CreateSessionHandler(); - private final FormBodyHandler formBodyHandler = new FormBodyHandler(true, new Supplier() { - @Override - public Executor get() { - // we always run in blocking mode and never run in an event loop thread - // we don't need to provide an executor to dispatch to a worker thread to parse the body - return null; - } - }, Set.of()); + private final FormBodyHandler formBodyHandler = new FormBodyHandler(true, () -> Runnable::run, Set.of()); @Override public List handlers(Phase phase, ResourceClass resourceClass, @@ -53,7 +43,7 @@ public final class KeycloakHandlerChainCustomizer implements HandlerChainCustomi switch (phase) { case BEFORE_METHOD_INVOKE: - if (!resourceMethod.isFormParamRequired() && + if (!resourceMethod.isFormParamRequired() && (PATCH.equalsIgnoreCase(resourceMethod.getHttpMethod()) || POST.equalsIgnoreCase(resourceMethod.getHttpMethod()) || PUT.equalsIgnoreCase(resourceMethod.getHttpMethod()))) {