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

patch to switch to Sakai internal ID to key users, instead of EID

    XMLWordPrintable

    Details

    • Type: (Deprecated) Contributed Patch
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Non-Issue
    • Affects Version/s: 2.4.0, 2.4.1
    • Fix Version/s: None
    • Component/s: Rwiki
    • Labels:
      None
    • CLE Team Issue:
      Yes

      Description

      This patch changes rwiki/rwiki-tool/tool/src/java/uk/ac/cam/caret/sakai/rwiki/tool/bean/helper/UserHelperBean.java

      In the init method, the line user = ((HttpServletRequest) request).getRemoteUser(); returns the Sakai EID for that user, which does not make a good key because it can change.

      We change this to use user = org.sakaiproject.tool.cover.SessionManager.getCurrentSessionUserId(); instead, which returns Sakai's internal USER_ID.

      The patch also includes a pair of SQL statements that convert the existing EIDs in the rwikipagepresence and rwikipreference tables to their corresponding Sakai USER_IDs.

      Unicon made this change for Georgia Tech, and Georgia Tech is contributing it back.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                maintenanceteam Core Team
                Reporter:
                zach.thomas@txstate.edu Zach A. Thomas
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration