Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-52656

Session not correctly cleared when switching users with setUser in unit tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 3.0.2
    • Fix Version/s: 2.9.5, 3.0.3
    • Component/s: Unit tests
    • Labels:

      Description

      Discovered while experimenting with MDL-52000.
      I'm calling a function, forum_print_overview, which sets $SESSION->currentgroup.
      I'm then changing user with setUser() to a user in a different group, and calling the same function again.
      However it seems that the session is not cleaned, and the same currentgroup persists between calls.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Mar/16