From 09ada1604274d54efef155205e20f344361418f0 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 15 Jan 2021 17:25:25 +0100 Subject: [PATCH] Avoid Jetty's default directory listing settings in web.xml The directory listing servlet seems not be needed for the default settings. This change explicitly sets it off in web.xml. Credis to @jobar for the original change made for Wikimedia. Git Pull Request #61 Signed-off-by: Martin Stockhammer --- .../archiva-webapp/src/main/webapp/WEB-INF/web.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml index fa04fc605..4db7ae535 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml @@ -161,7 +161,18 @@ CXFServletV2 /api/* - + + + + default + org.eclipse.jetty.servlet.DefaultServlet + + dirAllowed + false + + 0 + + index.html -- 2.39.5