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

core_course_update_courses allows category update of site which breaks site

XMLWordPrintable

    • MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-55876-master
    • Easy
    • Hide
      1. Run vendor/bin/phpunit course/tests/courselib_test.php
      2. Make sure it pass.
      1. Try to update information on course id 1 (SITEID) using core_course_update_courses and make sure you get an exception.
      Show
      Run vendor/bin/phpunit course/tests/courselib_test.php Make sure it pass. Try to update information on course id 1 (SITEID) using core_course_update_courses and make sure you get an exception.
    • 3.2 Sprint 5

      We had a MoodleCloud customer site break and upon investigation learnt that there were no longer any courses in category 0. this triggers a "nosite" exception from https://github.com/moodle/moodle/blob/master/lib/datalib.php#L564

      Going through the apache logs, the user sent a webservice request to core_course_update_courses which resulted in a 200 OK followed by a request to core_course_get_courses which returned a 503 at which point the site was throwing the "nosite" exception.

      If any HQ devs want to see the full log, please come see me

            lameze Simey Lameze
            jtomkinson Jordan Tomkinson
            Adrian Greeve Adrian Greeve
            Andrew Lyons Andrew Lyons
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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