From 13a6dc9da7db51a71847d323abbd1b63b28eeded Mon Sep 17 00:00:00 2001 From: Alexander Skoblikov Date: Fri, 8 Aug 2025 17:09:02 +0300 Subject: [PATCH] dbeaver/pro#6216 fix missing errors (#3645) Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com> --- .../service/auth/handler/WSAuthSessionEventHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/handler/WSAuthSessionEventHandler.java b/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/handler/WSAuthSessionEventHandler.java index 64defe95bd..753140bf38 100644 --- a/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/handler/WSAuthSessionEventHandler.java +++ b/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/handler/WSAuthSessionEventHandler.java @@ -32,6 +32,7 @@ import org.jkiss.code.NotNull; import org.jkiss.dbeaver.DBException; import org.jkiss.dbeaver.Log; import org.jkiss.dbeaver.model.auth.SMAuthInfo; +import org.jkiss.dbeaver.model.auth.SMAuthStatus; import org.jkiss.dbeaver.model.websocket.WSEventHandler; import org.jkiss.dbeaver.model.websocket.event.session.WSAuthEvent; @@ -45,7 +46,7 @@ public class WSAuthSessionEventHandler implements WSEventHandler { SMAuthInfo authInfo = event.getAuthInfo(); WebApplication webApplication = WebAppUtils.getWebApplication(); WebAppSessionManager sessionManager = webApplication.getSessionManager(); - if (authInfo.getAuthPermissions() == null) { + if (authInfo.getAuthPermissions() == null && authInfo.getAuthStatus() == SMAuthStatus.SUCCESS) { log.error("No auth permissions available in SUCCESS auth"); return; }