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

Passing invalid value to schedule a task result in invalid notification

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7, 2.7.3, 2.8.1
    • Fix Version/s: 2.7.4, 2.8.2
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. Goto Site administration / ►Server / ►Scheduled tasks
      2. Click on edit for any task, try all the schedule field combinations mentioned in https://docs.moodle.org/28/en/Scheduled_tasks
      3. Look at the unit test in this patch and try some of those combination and make sure the results are as expected.
      4. Try any other combination as suggested by the "help" text of the fields, that you think I might have missed.
      5. Run unit tests and makes sure they pass.
      Show
      Goto Site administration / ►Server / ►Scheduled tasks Click on edit for any task, try all the schedule field combinations mentioned in https://docs.moodle.org/28/en/Scheduled_tasks Look at the unit test in this patch and try some of those combination and make sure the results are as expected. Try any other combination as suggested by the "help" text of the fields, that you think I might have missed. Run unit tests and makes sure they pass.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-44393-master
    • Sprint:
      Team B Sprint 1

      Description

      Steps to reproduce:

      1. Go to "Site administration -> Server -> Scheduled tasks"
      2. Click on edit icon next to "Award badges"
      3. Enter "/2" in minutes and save
      4. you will see "/2" gives Notice: Undefined offset: -1 in /home/rajesht/moodles/im/moodle/lib/classes/task/scheduled_task.php on line 207

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Jan/15