Преглед на файлове

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.
Luke Taylor преди 15 години
родител
ревизия
2023ca283e
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      web/src/main/java/org/springframework/security/web/access/DefaultWebInvocationPrivilegeEvaluator.java

+ 0 - 1
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();