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

race condition in calendar

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.6.6, 1.7.4, 1.8.4, 1.9
    • Calendar
    • None
    • All
    • MOODLE_16_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      I've just realised there's quite a serious race condition for how repeat events are handled in the calendar. I thought the repeatid column just pointed to the id of the original event.

      But, no:

      if ($form->repeat) {
      $fetch = get_record_sql('SELECT 1, MAX(repeatid) AS repeatid FROM '.$CFG->prefix.'event');
      $form->repeatid = empty($fetch) ? 1 : $fetch->repeatid + 1;
      }

      cvs:/calendar/edit.php

      Attachments

        Activity

          People

            stronk7 Eloy Lafuente (stronk7)
            mjollnir Penny Leach
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Jan/08