This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b889f9388 [FIX] Failing class cast in IMAPCommandThrottler (#2838)
6b889f9388 is described below

commit 6b889f938886a6273473d3576e8498e2524f5629
Author: Benoit TELLIER <[email protected]>
AuthorDate: Fri Oct 24 00:55:58 2025 +0200

    [FIX] Failing class cast in IMAPCommandThrottler (#2838)
---
 .../java/org/apache/james/imapserver/netty/IMAPCommandsThrottler.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPCommandsThrottler.java
 
b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPCommandsThrottler.java
index 111410e979..cf0c76ff60 100644
--- 
a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPCommandsThrottler.java
+++ 
b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPCommandsThrottler.java
@@ -116,7 +116,7 @@ public class IMAPCommandsThrottler extends 
ChannelInboundHandlerAdapter {
     @Override
     public void channelRead(ChannelHandlerContext ctx, Object msg) {
         if (msg instanceof ImapRequest imapRequest) {
-            ImapSession session = (ImapSession) 
ctx.channel().attr(IMAP_SESSION_ATTRIBUTE_KEY);
+            ImapSession session = 
ctx.channel().attr(IMAP_SESSION_ATTRIBUTE_KEY).get();
             String key = 
imapRequest.getCommand().getName().toUpperCase(Locale.US);
 
             resetDelaysIfNeeded(key, session);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to