File tree 2 files changed +13
-0
lines changed
servlet/src/test/java/io/undertow/servlet/test/defaultservlet
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,18 @@ public void testDisallowedResource() throws IOException {
259
259
}
260
260
}
261
261
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
+
262
274
@ Test
263
275
public void testDirectoryListing () throws IOException {
264
276
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