Uploaded image for project: 'Gateway'
  1. Gateway
  2. GTWY-930

AcegiUnauthorizedResource not removed from thread local at the end of the request cycle

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Won't Do
    • Icon: Critical Critical
    • Recycle Bin
    • 1.0.0-M2
    • None
    • None

      AcegiUnauthorizedResource is saved in thread local storage, but it doesn't appear to be ever removed from thread local storage.

      All thread local storage variables need to be removed from the thread at the end of the request processing. Tomcat uses thread pools to reuse threads between requests. Thus values left here will be around for subsequent requests and that may lead to spurious and hard to debug crashes.

      In this case a user may hit an AccessDeniedException and after login be redirected back to a resource from another users request, not where they came from.

              wilhelmi Nathan Wilhelmi (Inactive)
              wilhelmi Nathan Wilhelmi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: