Преглед изворни кода

SEC-532: Madded FilterinvocationDefinitionSourceMapping package scoped

Luke Taylor пре 17 година
родитељ
комит
a0ee7fb6fd

+ 1 - 1
core/src/main/java/org/springframework/security/intercept/web/FilterInvocationDefinitionSourceMapping.java

@@ -29,7 +29,7 @@ import org.springframework.security.ConfigAttribute;
  * @version $Id$
  * @since 1.1
  */
-public class FilterInvocationDefinitionSourceMapping {
+class FilterInvocationDefinitionSourceMapping {
 
     private String url;
 

+ 3 - 0
core/src/main/java/org/springframework/security/intercept/web/PathBasedFilterInvocationDefinitionMap.java

@@ -54,6 +54,9 @@ public class PathBasedFilterInvocationDefinitionMap extends DefaultFilterInvocat
     public void addSecureUrl(String antPath, String method, ConfigAttributeDefinition attr) {
         // SEC-501: If using lower case comparison, we should convert the paths to lower case
         // as any upper case characters included by mistake will prevent the URL from ever being matched.
+        // This shouldn't be needed anymore. The property editor complains if there is upper case text in the URL
+        // and the namespace implementation does the conversion itself, so it is safe to use the parent class
+        // directly. 
         if (getUrlMatcher().requiresLowerCaseUrl()) {
             antPath = antPath.toLowerCase();
         }