Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2013-01-07 08:57:52 +0000
committerGreg Wilkins2013-01-07 08:57:52 +0000
commitccda9bb10b8a54fbf48510e979151a7addf1c11d (patch)
tree080ac75f7c53306e4ec7ea055218b9ec7c449523 /test-jetty-webapp
parenta4c547d61fbe2cc60eac38f0c9624774c77f1081 (diff)
downloadorg.eclipse.jetty.project-ccda9bb10b8a54fbf48510e979151a7addf1c11d.tar.gz
org.eclipse.jetty.project-ccda9bb10b8a54fbf48510e979151a7addf1c11d.tar.xz
org.eclipse.jetty.project-ccda9bb10b8a54fbf48510e979151a7addf1c11d.zip
397535 Support pluggable alias checking to support symbolic links
Diffstat (limited to 'test-jetty-webapp')
-rw-r--r--test-jetty-webapp/src/main/config/contexts/test.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/test-jetty-webapp/src/main/config/contexts/test.xml b/test-jetty-webapp/src/main/config/contexts/test.xml
index 32e5b40584..00372852e4 100644
--- a/test-jetty-webapp/src/main/config/contexts/test.xml
+++ b/test-jetty-webapp/src/main/config/contexts/test.xml
@@ -13,7 +13,6 @@ detected.
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
-
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- Required minimal context configuration : -->
<!-- + contextPath -->
@@ -30,6 +29,19 @@ detected.
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
<Set name="overrideDescriptor"><SystemProperty name="jetty.home" default="."/>/contexts/test.d/override-web.xml</Set>
+ <!-- Allow directory symbolic links -->
+ <Call name="addAliasCheck">
+ <Arg>
+ <New class="org.eclipse.jetty.server.handler.ContextHandler$ApprovePathPrefixAliases"/>
+ </Arg>
+ </Call>
+ <!-- Allow file symbolic links -->
+ <Call name="addAliasCheck">
+ <Arg>
+ <New class="org.eclipse.jetty.server.handler.ContextHandler$ApproveSameSuffixAliases"/>
+ </Arg>
+ </Call>
+
<!-- virtual hosts
<Set name="virtualHosts">
<Array type="String">

Back to the top