ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ambari] hapylestat commented on a change in pull request #3208: AMBARI-25353 Seeing an error stack when running an API call against Ambari server (santal)
Date Mon, 03 Aug 2020 09:14:58 GMT

hapylestat commented on a change in pull request #3208:
URL: https://github.com/apache/ambari/pull/3208#discussion_r464291707



##########
File path: ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariHandlerList.java
##########
@@ -251,6 +251,10 @@ private WebAppContext getHandler(ViewInstanceEntity viewInstanceDefinition)
     webAppContext.addFilter(new FilterHolder(springSecurityFilter), "/*", AmbariServer.DISPATCHER_TYPES);
     webAppContext.setAllowNullPathInfo(true);
 
+    if (webAppContext.getErrorHandler() != null) {
+      webAppContext.getErrorHandler().setShowStacks(false);

Review comment:
       can we make this configurable via introducing some debug property  or add logging to
ambari-server.log? 
   
   In most cases, such kind of errors r not present in the logs and the only source of them
r response from the server




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message