From 2023ca283eaa6fea3a4f166168b48361bf2e0860 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 12 Jan 2010 00:30:27 +0000 Subject: [PATCH] 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. --- .../web/access/DefaultWebInvocationPrivilegeEvaluator.java | 1 - 1 file changed, 1 deletion(-) diff --git a/web/src/main/java/org/springframework/security/web/access/DefaultWebInvocationPrivilegeEvaluator.java b/web/src/main/java/org/springframework/security/web/access/DefaultWebInvocationPrivilegeEvaluator.java index 66fa524146..869f5dfabf 100644 --- a/web/src/main/java/org/springframework/security/web/access/DefaultWebInvocationPrivilegeEvaluator.java +++ b/web/src/main/java/org/springframework/security/web/access/DefaultWebInvocationPrivilegeEvaluator.java @@ -147,7 +147,6 @@ public class DefaultWebInvocationPrivilegeEvaluator implements WebInvocationPriv } private FilterInvocation createFilterInvocation(String contextPath, String uri, String method) { - Assert.hasText(contextPath, "contextPath required"); Assert.hasText(uri, "URI required"); DummyRequest req = new DummyRequest();