From 965d96c3868c8392d2dab73697e508724076e830 Mon Sep 17 00:00:00 2001 From: serge-rider Date: Mon, 27 May 2024 09:57:35 +0200 Subject: [PATCH] Web session read fix (use copy to avoid ConcurrentModificationException) --- .../src/io/cloudbeaver/service/session/WebSessionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/session/WebSessionManager.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/session/WebSessionManager.java index f0c693cbb6..22ad19dfa9 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/session/WebSessionManager.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/session/WebSessionManager.java @@ -274,7 +274,7 @@ public void expireIdleSessions() { public Collection getAllActiveSessions() { synchronized (sessionMap) { - return sessionMap.values(); + return new ArrayList<>(sessionMap.values()); } }