Results 1 to 3 of 3

Thread: really strange problem with session

  1. #1
    Join Date
    Feb 2005
    Posts
    7

    Default really strange problem with session

    hello,

    I've encountered a really strange problem in my webapp. I'm not sure if
    it this is an acegi-related issue but I'd like to be sure about this.

    I use acegi security filter to perform authentication and authorization
    in my webapp. The problem is that very, very seldom (two times so far in
    last weeks) one user was able to see the data of another user. Each user
    has another request.getSession().getId(), so this is not a
    session-hijacking issue.

    It looks just like the object stored in SecureContext is replaced with
    the data of another user. I've reviewed all of my code and I do not see
    any place where this could happen. The object stored in
    context.getAuthentication().getPrincipal() is loaded by Hibernate during
    login process.

    Does anybody have any ideas how it is possible that content of
    context.getAuthentication().getPrincipal() is replaced with the data
    from another http session?

    Thans for help,
    Artur Wronski

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    Do you have a load-testing setup you can use to hit the system and try to reproduce the problem more regularly? Without more to go on it's impossible to say what could be happening and there isn't any evidence here that information from one session is being replaced by that in another.

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

    Default

    Check your debug logs for HttpSessionContextIntegrationFilter, and check it's clearing the ContextHolder. It's written in a fail-safe way, so even if the ContextHolder contains something, it is still set to null again. See also http://opensource.atlassian.com/proj.../browse/SEC-20

Similar Threads

  1. OpenSessionInView and portlet support
    By garpinc2 in forum Web Flow
    Replies: 31
    Last Post: Apr 9th, 2010, 11:12 AM
  2. Replies: 2
    Last Post: Oct 13th, 2005, 02:47 PM
  3. OpenSessionInView + CMT Session usage
    By alesj in forum Data
    Replies: 7
    Last Post: Aug 16th, 2005, 02:32 AM
  4. Replies: 1
    Last Post: Mar 12th, 2005, 04:33 AM
  5. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 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
  •