Shiro Plugin
  1. Shiro Plugin
  2. GPSHIRO-49

Default DB realm should use withTransaction()

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1.1
    • Labels:
      None

      Description

      The realm methods that access the database in the default DB realm should use withTransaction() to ensure that a session is open for the life of the method. This is because there are no guarantees that a session will be open. For example, in a web flow, the session is bound to the thread after the Grails filters execute.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Peter McNeil
            Reporter:
            Peter Ledbrook
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: