File tree Expand file tree Collapse file tree
servlet/src/test/java/io/undertow/servlet/test/defaultservlet Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -259,6 +259,18 @@ public void testDisallowedResource() throws IOException {
259259 }
260260 }
261261
262+ @ Test
263+ public void testNoAccessToMetaInfResource () throws IOException {
264+ TestHttpClient client = new TestHttpClient ();
265+ try {
266+ HttpGet get = new HttpGet (DefaultServer .getDefaultServerURL () + "/servletContext/meta-inf/secret" );
267+ HttpResponse result = client .execute (get );
268+ Assert .assertEquals (StatusCodes .NOT_FOUND , result .getStatusLine ().getStatusCode ());
269+ } finally {
270+ client .getConnectionManager ().shutdown ();
271+ }
272+ }
273+
262274 @ Test
263275 public void testDirectoryListing () throws IOException {
264276 TestHttpClient client = new TestHttpClient ();
Original file line number Diff line number Diff line change 1+ confidential
You can’t perform that action at this time.
0 commit comments