SEC-1358: Support empty context path in DefaultWebInvocationPrivilegeEvaluator

This class was failing when an application was deployed at the root context because of an assertion which checked that the contexPath was not empty. An empty context path doesn't actually cause problems for the class so I've removed the assertion.
This commit is contained in:
Luke Taylor 2010-01-12 00:30:27 +00:00
parent b323098167
commit 2023ca283e
1 changed files with 0 additions and 1 deletions

View File

@ -147,7 +147,6 @@ public class DefaultWebInvocationPrivilegeEvaluator implements WebInvocationPriv
} }
private FilterInvocation createFilterInvocation(String contextPath, String uri, String method) { private FilterInvocation createFilterInvocation(String contextPath, String uri, String method) {
Assert.hasText(contextPath, "contextPath required");
Assert.hasText(uri, "URI required"); Assert.hasText(uri, "URI required");
DummyRequest req = new DummyRequest(); DummyRequest req = new DummyRequest();