Skip to content
Snippets Groups Projects
Commit e94d8c05 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4460 OZG-4495 temp solution for testing on dev cluster

parent 9a190440
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,6 @@ import de.itvsh.kop.common.logging.KopLogging;
import de.itvsh.kop.user.RemoteUserIterator;
import de.itvsh.kop.user.User;
import de.itvsh.kop.user.UserResourceMapper;
import de.itvsh.kop.user.common.errorhandling.KeycloakUnavailableException;
import lombok.extern.log4j.Log4j2;
@ApplicationScoped
......@@ -87,8 +86,17 @@ class KeycloakApiService {
<T> T handlingKeycloakException(Supplier<T> runnable) {
try {
return runnable.get();
} catch (ClientErrorException | ProcessingException | IllegalStateException e) {
throw new KeycloakUnavailableException(properties.user(), properties.realm(), keycloakUrl, e);
} catch (ClientErrorException e) {
// throw new KeycloakUnavailableException(properties.user(), properties.realm(), keycloakUrl, e);
LOG.error("client error with status {} and message {}: {} / ", e.getMessage(), e.getResponse().getStatus(), e.getResponse().getEntity()
, e);
throw e;
} catch (ProcessingException e) {
LOG.error("error processing request or response ", e.getMessage(), e);
throw e;
} catch (IllegalStateException e) {
LOG.error("illegal state ", e.getMessage(), e);
throw e;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment