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

False positive read only session changed errors on services that aren't read only

      I've been going through error logs and have noticed a large number of read only session changed errors from multiple lib/ajax services that haven't defined 'readonlysession' (which defaults to false). One such example:

      Script /lib/ajax/service.php?sesskey=xxx&info=mod_assign_list_participants defined READ_ONLY_SESSION but the following SESSION attributes were changed: $SESSION->mod_assign_useridlist

      From my testing this only occurs when $CFG->enable_read_only_sessions is true but $CFG->enable_read_only_sessions_debug is not.

      It appears to be a regression from MDL-81192, which added a check in restart_with_write_lock() so that self::$requireslockdebug is only altered if $CFG->enable_session_lock_debug is true.

            benjaminwalker Benjamin Walker
            benjaminwalker Benjamin Walker
            Brendan Heywood Brendan Heywood
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.