Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-762

SecurityUtils.securityManager should be volatile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Resolved
    • 1.5.2
    • 1.5.4, 1.6.0, 2.0.0-alpha
    • None
    • None

    Description

      SecurityUtils.securityManager should be volatile because it can be modified and read by different threads. Otherwise different threads see different values and crazy things happen.

      GitHub PR: https://github.com/apache/shiro/pull/218

      Attachments

        Activity

          People

            Unassigned Unassigned
            boris-petrov Boris Petrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h