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

Syntax Error instead of session timeout warning from AJAX_SCRIPT renderer

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Note: Required $CFG->dbsessions to be true, also set $CFG->sessiontimeout to something small, like 5 minutes

      1. Login as admin
      2. Navigate to your dashboard
      3. Open a new tab and log out in that tab
      4. Return to your first tab
      5. Attempt to expand the Site administration
        1. Confirm you get a nicer error message "Course or activity not accessible." is the default string for that
      6. Log back in again, make sure you are on the page where the site administration node is collapsed and not loaded
      7. Wait for 5 minutes for session to timeout
      8. Attempt to expand the Site administration
        1. Confirm you get a nice message explaining that your session timed out. In case if $CFG->dbsessions was not set to true, you would get error "Course or activity not accessible."
      Show
      Note: Required $CFG->dbsessions to be true, also set $CFG->sessiontimeout to something small, like 5 minutes Login as admin Navigate to your dashboard Open a new tab and log out in that tab Return to your first tab Attempt to expand the Site administration Confirm you get a nicer error message "Course or activity not accessible." is the default string for that Log back in again, make sure you are on the page where the site administration node is collapsed and not loaded Wait for 5 minutes for session to timeout Attempt to expand the Site administration Confirm you get a nice message explaining that your session timed out . In case if $CFG->dbsessions was not set to true, you would get error "Course or activity not accessible."
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-43785-master

      Description

      I was opening the "Site Administration" disclosure triangle (within the docked Administration block) from a page that I had left open yesterday (so session was expired).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Sep/15