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 2022/08/28 04:16:54 UTC

[GitHub] [ambari] brahmareddybattula commented on a diff in pull request #3356: AMBARI-25724 : Bump up jetty to 9.4.48.v20220622 to resolve CVEs

brahmareddybattula commented on code in PR #3356:
URL: https://github.com/apache/ambari/pull/3356#discussion_r956659746


##########
ambari-server/src/main/java/org/apache/ambari/server/api/AmbariViewErrorHandlerProxy.java:
##########
@@ -51,14 +51,18 @@ public AmbariViewErrorHandlerProxy(ErrorHandler webAppErrorHandler, AmbariErrorH
 
   @Override
   public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException {
-
+   try{
     if (isInternalError(request, response)) {
       //invoke the ambari error handler
       ambariErrorHandler.handle(target, baseRequest, request, response);
     } else {
       //invoke the original errorhandler
       webAppErrorHandler.handle(target, baseRequest, request, response);
     }
+   }
+   catch(Exception e){
+    System.out.println("Something went wrong");

Review Comment:
   Can you please use the logger.?



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

To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org