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

Thread: Supported Way to Emulate request.getUserPrincipal?

  1. #11
    Join Date
    Aug 2004
    Location
    Hawaii, US
    Posts
    225

    Default

    Did you change the order of your filters? Maybe another filter farther down the chain is re-wrapping the Request object?

  2. #12
    Join Date
    Oct 2004
    Location
    Kuala Lumpur
    Posts
    7

    Default

    Hi Seth,
    yes...I did that - I tried it at every possible order - from first to last but it didn't work.
    (The ony difference was that when it ContextHolderAwareRequestFilter was first in the chain it didn't have any acegi context)

    Peter

  3. #13
    Join Date
    Oct 2004
    Location
    Kuala Lumpur
    Posts
    7

    Default ContextHolderAwareRequestFilter in 0.8

    I'm still not able to figure out how to use the ContextHolderAwareRequestFilter as a part of FilterChainProxy....so at the moment I just call it directly from web.xml (just like in version 0.7).

    Please let me know If anybody has any suggestions on how to implement it using the filter chain proxy :-)

    Thanks

    Peter

  4. #14
    Join Date
    Aug 2004
    Location
    Hawaii, US
    Posts
    225

    Default

    Peter,

    Can you post your config?

    Thanks,
    Seth

  5. #15
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    ContextHolderAwareRequestFilter integration with FilterChainProxy could well be a bug, as Matt also noticed in http://forum.springframework.org/viewtopic.php?t=3933. I promise to look at it ASAP. In the meantime I would expect you can continue to use it via FilterToBeanProxy (ie outside FilterChainProxy).

  6. #16
    Join Date
    Oct 2004
    Location
    Kuala Lumpur
    Posts
    7

    Default

    Hi Ben,
    thanks for answer and pointing to Matt's thread...he nicely summed up my last Saturday :-)
    First the logging out and then the filter chain...

    Peter

  7. #17
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    FilterChainProxy is now fixed and in CVS.

Similar Threads

  1. Replies: 5
    Last Post: Aug 28th, 2005, 10:28 AM
  2. Replies: 2
    Last Post: May 24th, 2005, 11:22 AM
  3. Replies: 10
    Last Post: Feb 16th, 2005, 11:34 AM
  4. Which Hibernate version supported?
    By Lilly in forum Data
    Replies: 2
    Last Post: Feb 7th, 2005, 07:23 PM
  5. When element "import" will be supported?
    By swisswheel in forum SpringSource Tool Suite
    Replies: 2
    Last Post: Jan 23rd, 2005, 08:53 PM

Posting Permissions

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