Repository: brooklyn-server
Updated Branches:
  refs/heads/master b80b62232 -> 98a909ce3


BROOKLYN-293: web-console disables directory listing

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

Branch: refs/heads/master
Commit: ea11d67144cfaf631cfe4cea031e934002cc431a
Parents: b80b622
Author: Aled Sage <aled.s...@gmail.com>
Authored: Wed Jun 8 10:46:17 2016 +0100
Committer: Aled Sage <aled.s...@gmail.com>
Committed: Wed Jun 8 10:46:17 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/brooklyn/launcher/WebAppContextProvider.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/ea11d671/launcher/src/main/java/org/apache/brooklyn/launcher/WebAppContextProvider.java
----------------------------------------------------------------------
diff --git 
a/launcher/src/main/java/org/apache/brooklyn/launcher/WebAppContextProvider.java
 
b/launcher/src/main/java/org/apache/brooklyn/launcher/WebAppContextProvider.java
index c845661..fc8b89f 100644
--- 
a/launcher/src/main/java/org/apache/brooklyn/launcher/WebAppContextProvider.java
+++ 
b/launcher/src/main/java/org/apache/brooklyn/launcher/WebAppContextProvider.java
@@ -77,6 +77,7 @@ public class WebAppContextProvider {
         // but i think it actually *is* per-server instance, since we don't 
cache sessions server-side,
         // so i think this is write. [Alex 2015-09]
         context.setInitParameter(SessionManager.__SessionCookieProperty, 
SessionManager.__DefaultSessionCookie + "_" + "BROOKLYN" + 
Identifiers.makeRandomId(6));
+        
context.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", 
"false");
         
context.setAttribute(BrooklynServiceAttributes.BROOKLYN_MANAGEMENT_CONTEXT, 
managementContext);
         for (Map.Entry<String, Object> attributeEntry : attributes.entrySet()) 
{
             context.setAttribute(attributeEntry.getKey(), 
attributeEntry.getValue());

Reply via email to