You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2020/02/25 19:16:59 UTC

[GitHub] [knox] moresandeep commented on a change in pull request #263: KNOX-2226 - Add home page to Knox

moresandeep commented on a change in pull request #263: KNOX-2226 - Add home page to Knox
URL: https://github.com/apache/knox/pull/263#discussion_r378351786
 
 

 ##########
 File path: gateway-server/src/main/java/org/apache/knox/gateway/GatewayServer.java
 ##########
 @@ -923,6 +925,40 @@ private synchronized void internalActivateArchive( Topology topology, File warDi
     }
   }
 
+  private synchronized void activateHomeApp() {
+    try {
+      // UI
+      activateHomepageContext("/home", "homepage/%2Fhome");
+
+      // API
+      activateHomepageContext("/home/api", "homepage/%2F");
+    } catch (Throwable e) {
+      e.printStackTrace();
 
 Review comment:
   This might be due to WIP, but we should not be throwing stack traces.

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


With regards,
Apache Git Services