From f305dda2187435098d6cde1343522d9dc318e871 Mon Sep 17 00:00:00 2001 From: Dylan Werner-Meier Date: Sat, 9 Nov 2024 16:56:52 +0100 Subject: [PATCH] Fixes TINKERPOP-3120 --- .../gremlin/server/handler/WebSocketAuthorizationHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WebSocketAuthorizationHandler.java b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WebSocketAuthorizationHandler.java index 1220bcee31d..22df5249858 100644 --- a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WebSocketAuthorizationHandler.java +++ b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WebSocketAuthorizationHandler.java @@ -77,6 +77,9 @@ public void channelRead(final ChannelHandlerContext ctx, final Object msg) { authorizer.authorize(user, requestMessage); ctx.fireChannelRead(requestMessage); break; + case Tokens.OPS_CLOSE: + ctx.fireChannelRead(requestMessage); + break; default: throw new AuthorizationException("This AuthorizationHandler only handles requests with OPS_BYTECODE or OPS_EVAL."); }