knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject knox git commit: KNOX-825 setting to turn off directory browsing
Date Wed, 21 Dec 2016 20:23:05 GMT
Repository: knox
Updated Branches:
  refs/heads/master 87a7592ea -> ee0028fdb


KNOX-825 setting to turn off directory browsing


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/ee0028fd
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/ee0028fd
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/ee0028fd

Branch: refs/heads/master
Commit: ee0028fdb31741d6f8f76acec77c32bdd1f37507
Parents: 87a7592
Author: Sumit Gupta <sumit@apache.org>
Authored: Wed Dec 21 15:22:08 2016 -0500
Committer: Sumit Gupta <sumit@apache.org>
Committed: Wed Dec 21 15:22:08 2016 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/gateway/GatewayServer.java      | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/ee0028fd/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java b/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java
index abaa168..35bb0fe 100644
--- a/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java
+++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java
@@ -476,6 +476,7 @@ public class GatewayServer {
         ".*/[^/]*servlet-api-[^/]*\\.jar$|.*/javax.servlet.jsp.jstl-.*\\.jar$|.*/[^/]*taglibs.*\\.jar$"
);
     context.setTempDirectory( FileUtils.getFile( warFile, "META-INF", "temp" ) );
     context.setErrorHandler( createErrorHandler() );
+    context.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", "false");
     return context;
   }
 


Mime
View raw message