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

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 756133c60e9 HDDS-16817. Replace call to deprecated 
filterServerResponseHeader (#11466)
756133c60e9 is described below

commit 756133c60e97fe48369493a11fce196bcddaedab
Author: Andrey Yarovoy <[email protected]>
AuthorDate: Sun Oct 11 09:02:55 2026 -0400

    HDDS-16817. Replace call to deprecated filterServerResponseHeader (#11466)
    
    Generated-by: Claude Code (Claude Opus)
---
 .../src/test/java/org/apache/hadoop/ozone/s3/ProxyServer.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/hadoop-ozone/integration-test-s3/src/test/java/org/apache/hadoop/ozone/s3/ProxyServer.java
 
b/hadoop-ozone/integration-test-s3/src/test/java/org/apache/hadoop/ozone/s3/ProxyServer.java
index 6ae4bbfd756..7bd580cb843 100644
--- 
a/hadoop-ozone/integration-test-s3/src/test/java/org/apache/hadoop/ozone/s3/ProxyServer.java
+++ 
b/hadoop-ozone/integration-test-s3/src/test/java/org/apache/hadoop/ozone/s3/ProxyServer.java
@@ -209,11 +209,11 @@ protected void onServerResponseHeaders(HttpServletRequest 
clientRequest,
         if (HOP_HEADERS.contains(headerName.toLowerCase(Locale.ENGLISH))) {
           continue;
         }
-        String headerValue = filterServerResponseHeader(clientRequest, 
serverResponse, headerName, field.getValue());
-        if (StringUtils.isBlank(headerValue)) {
+        HttpField filtered = filterServerResponseHeader(clientRequest, 
serverResponse, field);
+        if (filtered == null || StringUtils.isBlank(filtered.getValue())) {
           continue;
         }
-        proxyResponse.addHeader(headerName, headerValue);
+        proxyResponse.addHeader(headerName, filtered.getValue());
       }
     }
 


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

Reply via email to