You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by GitBox <gi...@apache.org> on 2020/08/03 09:42:53 UTC

[GitHub] [ambari] sziszo commented on a change in pull request #3208: AMBARI-25353 Seeing an error stack when running an API call against Ambari server (santal)

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



##########
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:
       yeah sure, it makes sense to make it configurable. Let me check if we already have this type of property or if I need to create a new one.




----------------------------------------------------------------
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