Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-38784

BasePreferences are "cached" in MySession and Ehcache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: OPEN
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.0
    • Fix Version/s: None
    • Component/s: Kernel
    • Labels:
    • Previous Issue Keys:
      KNL-1190

      Description

      org.sakaiproject.user.impl.BasePreferencesService.findPreferences(String id) stores the preferences in 2 places in memory for each user (ever since KNL-562, KNL-660, KNL-704).

      1) session.getAttribute(ATTR_PREFERENCE)
      2) org.sakaiproject.user.impl.BasePreferencesService.preferences cache (ehcache)

      This means the data is actually stored in 2 difference cache like location with inconsistent rules (one expires in 300 seconds and the other never expires until the Session ends)

      The preference should not be stored in the session anymore and anything that looks in the session for them should use the org.sakaiproject.user.api.PreferencesService.getPreferences(userId) instead.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  aaronz Aaron Zeckoski (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Git Source Code