You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2014/08/18 22:33:12 UTC

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

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 <jh...@hortonworks.com>
Authored: Mon Aug 18 16:32:28 2014 -0400
Committer: Jonathan Hurley <jh...@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 */