Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: AntUrlPathMatcher backwards compatibility

  1. #11
    Join Date
    May 2008
    Location
    Salt Lake City
    Posts
    167

    Default

    Finally got around to trying this out myself. I'm not seeing your error, but I am seeing a different error that was introduced with some recent changes that Luke made to spring security. This is what mine looks like:

    Code:
    java.lang.ClassCastException: org.springframework.beans.factory.config.RuntimeBeanReference cannot be cast to java.util.List
    	at org.springframework.security.oauth.config.OAuthProviderBeanDefinitionParser.findFilterChain(OAuthProviderBeanDefinitionParser.java:190)
    	at org.springframework.security.oauth.config.OAuthProviderBeanDefinitionParser.parse(OAuthProviderBeanDefinitionParser.java:167)
    Can you verify that you've done a "clean install" from the project root? I'm wondering if you haven't compiled the changes in the parent pom and in the runtime library...

    Currently in the process of figuring out the fix for the CCE. It would be nice if you could get to the point where you're reproducing what I'm seeing.

  2. #12
    Join Date
    Nov 2010
    Posts
    18

    Default

    Hey, thanks, and sorry. I was missing the clean (I was just running mvn install).

    And now I can reproduce the same issue you have.

    So meanwhile I'll be working with 3.1.0.M2.

  3. #13
    Join Date
    May 2008
    Location
    Salt Lake City
    Posts
    167

    Default

    I just pushed a fix that incorporates the changes that Luke made to support multiple filter chains. All tests pass.

    The only thing left to do before merging this branch is figuring out how to handle backwards compatability with 3.0.

  4. #14
    Join Date
    Nov 2010
    Posts
    18

    Default

    Awesome! I just tried it.

    So, if filter-chain-ref is not provided, and there are more than one filter chain then I uses the last one in the map?

    This has always been the default behaviour, right?

    That could explain why when I used the module in my project back in december it had a weird behaviour: I have more than one filter chain.

  5. #15
    Join Date
    May 2008
    Location
    Salt Lake City
    Posts
    167

    Default

    Yes, that's correct.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •