ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject git commit: AMBARI-6868 - Ambari should disable web directory listing by default (Alejandro Fernandez via jonathanhurley)
Date Mon, 18 Aug 2014 20:33:12 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk bba2806f7 -> b8c832637


AMBARI-6868 - Ambari should disable web directory listing by default (Alejandro Fernandez
via jonathanhurley)


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

Branch: refs/heads/trunk
Commit: b8c8326378f3fe7f58a453f291508a5fd82ba023
Parents: bba2806
Author: Jonathan Hurley <jhurley@hortonworks.com>
Authored: Mon Aug 18 16:32:28 2014 -0400
Committer: Jonathan Hurley <jhurley@hortonworks.com>
Committed: Mon Aug 18 16:32:58 2014 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/ambari/server/controller/AmbariServer.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b8c83263/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
b/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
index f4439b8..7b93836 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
@@ -226,6 +226,7 @@ public class AmbariServer {
           "/", ServletContextHandler.SESSIONS );
 
       ServletHolder rootServlet = root.addServlet(DefaultServlet.class, "/");
+      rootServlet.setInitParameter("dirAllowed", "false");
       rootServlet.setInitOrder(1);
 
       /* Configure default servlet for agent server */


Mime
View raw message