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

rcordier 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 26e16364c5 [FIX] Use JdkZlibDecoder/Encoder in IMAP compress for 
immediate flush
26e16364c5 is described below

commit 26e16364c51cdbb8c551537f12231e4de68c6d68
Author: Benoit TELLIER <[email protected]>
AuthorDate: Mon Feb 9 15:23:10 2026 +0100

    [FIX] Use JdkZlibDecoder/Encoder in IMAP compress for immediate flush
---
 pom.xml                                                        |  5 -----
 server/protocols/protocols-imap4/pom.xml                       | 10 ----------
 .../org/apache/james/imapserver/netty/NettyImapSession.java    |  8 ++++----
 3 files changed, 4 insertions(+), 19 deletions(-)

diff --git a/pom.xml b/pom.xml
index 0402082e87..9f529ae3d9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2294,11 +2294,6 @@
                 <artifactId>json-path</artifactId>
                 <version>2.9.0</version>
             </dependency>
-            <dependency>
-                <groupId>com.jcraft</groupId>
-                <artifactId>jzlib</artifactId>
-                <version>1.1.3</version>
-            </dependency>
             <dependency>
                 <groupId>com.linagora</groupId>
                 <artifactId>metrics-elasticsearch-reporter</artifactId>
diff --git a/server/protocols/protocols-imap4/pom.xml 
b/server/protocols/protocols-imap4/pom.xml
index dc1b855e2d..046c6494bd 100644
--- a/server/protocols/protocols-imap4/pom.xml
+++ b/server/protocols/protocols-imap4/pom.xml
@@ -118,10 +118,6 @@
             <groupId>${james.protocols.groupId}</groupId>
             <artifactId>protocols-netty</artifactId>
         </dependency>
-        <dependency>
-            <groupId>com.jcraft</groupId>
-            <artifactId>jzlib</artifactId>
-        </dependency>
         <dependency>
             <groupId>io.github.hakky54</groupId>
             <artifactId>ayza-for-pem</artifactId>
@@ -148,12 +144,6 @@
             <groupId>org.mock-server</groupId>
             <artifactId>mockserver-netty</artifactId>
             <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>com.jcraft</groupId>
-                    <artifactId>jzlib</artifactId>
-                </exclusion>
-            </exclusions>
         </dependency>
         <dependency>
             <groupId>org.mockito</groupId>
diff --git 
a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java
 
b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java
index 32f663d6d3..9a10733e64 100644
--- 
a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java
+++ 
b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java
@@ -47,8 +47,8 @@ import org.apache.james.util.MDCBuilder;
 
 import io.netty.buffer.Unpooled;
 import io.netty.channel.Channel;
-import io.netty.handler.codec.compression.JZlibDecoder;
-import io.netty.handler.codec.compression.JZlibEncoder;
+import io.netty.handler.codec.compression.JdkZlibDecoder;
+import io.netty.handler.codec.compression.JdkZlibEncoder;
 import io.netty.handler.codec.compression.ZlibDecoder;
 import io.netty.handler.codec.compression.ZlibEncoder;
 import io.netty.handler.codec.compression.ZlibWrapper;
@@ -280,8 +280,8 @@ public class NettyImapSession implements ImapSession, 
NettyConstants {
 
         executeSafely(() -> {
             runnable.run();
-            ZlibDecoder decoder = new JZlibDecoder(ZlibWrapper.NONE);
-            ZlibEncoder encoder = new JZlibEncoder(ZlibWrapper.NONE, 5);
+            ZlibDecoder decoder = new JdkZlibDecoder(ZlibWrapper.NONE);
+            ZlibEncoder encoder = new JdkZlibEncoder(ZlibWrapper.NONE, 5);
 
             // Check if we have the SslHandler in the pipeline already
             // if so we need to move the compress encoder and decoder


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

Reply via email to