Grails Acegi Url映射怪异

时间:2010-11-15 19:21:02

标签: grails spring-security

这是Grails 1.2.0和Acegi 0.5.2。

我的安全配置的一部分(requestMapString):

requestMapString = """\
        CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
        PATTERN_TYPE_APACHE_ANT
        /login/auth=IS_AUTHENTICATED_ANONYMOUSLY
        /logout/**=IS_AUTHENTICATED_ANONYMOUSLY
        /role/**=IS_AUTHENTICATED_ANONYMOUSLY
        /js/**=IS_AUTHENTICATED_ANONYMOUSLY
        /css/**=IS_AUTHENTICATED_ANONYMOUSLY
        /images/**=IS_AUTHENTICATED_ANONYMOUSLY
        /plugins/**=IS_AUTHENTICATED_ANONYMOUSLY
        /captcha/**=IS_AUTHENTICATED_ANONYMOUSLY
        /register/**=IS_AUTHENTICATED_ANONYMOUSLY
        /help/**=IS_AUTHENTICATED_ANONYMOUSLY
        /=IS_AUTHENTICATED_FULLY
        /**=IS_AUTHENTICATED_FULLY
        """

我的顶部还有'/'规则,没有任何区别。在我的日志中,我看到像

这样的行
2010-11-15 14:08:02,937 DEBUG FilterChainProxy - Converted URL to lowercase, from: '/images/nav_bg_ribbon_hover.png'; to: '/images/nav_bg_ribbon_hover.png'
2010-11-15 14:08:02,938 DEBUG FilterChainProxy - Candidate is: '/images/nav_bg_ribbon_hover.png'; pattern is /**; matched=true

表示URL无法正确匹配。我在这里做错了什么?

0 个答案:

没有答案