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

weichiu pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.4 by this push:
     new f5b28449a89 YARN-10972. Remove stack traces from Jetty's response for 
Security Reasons. (#3502)
f5b28449a89 is described below

commit f5b28449a898a9b4027f533960ca83c224798608
Author: Tamas Domok <[email protected]>
AuthorDate: Mon Dec 29 21:16:09 2025 +0100

    YARN-10972. Remove stack traces from Jetty's response for Security Reasons. 
(#3502)
    
    (cherry picked from commit ee73a9b7db7db9d213354c5ffc33c3d8027c10c6)
---
 .../hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
index 161c13e2ef3..5d6c36ae305 100644
--- 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
+++ 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
@@ -742,6 +742,7 @@ private void initializeWebServer(String name, String 
hostName,
       throws IOException {
 
     Preconditions.checkNotNull(webAppContext);
+    webAppContext.getErrorHandler().setShowStacks(LOG.isTraceEnabled());
 
     int maxThreads = conf.getInt(HTTP_MAX_THREADS_KEY, -1);
     // If HTTP_MAX_THREADS is not configured, QueueThreadPool() will use the


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

Reply via email to