DefaultUserChecker doesn't lock cache when getting/setting Number of Users

XMLWordPrintable

    • Type: Bug
    • Resolution: Obsolete
    • Priority: Medium
    • None
    • Affects Version/s: 2.6.0
    • Component/s: None

      DefaultUserChecker doesn't lock the cache retrieved with getCache before getting and putting the NUMBER_OF_REGISTERED_USERS Integer.

      In code like:

      if (getNumberOfRegisteredUsers() > 0)
      getCache().put(NUMBER_OF_REGISTERED_USERS, new Integer(getNumberOfRegisteredUsers() + 1));

      this could invalidate the if test (which should operate on an int local variable).

              Assignee:
              Unassigned
              Reporter:
              David Taylor (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: