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

quiz attempt.php (& review.php?) should ensure $page is not out-of-range

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.2.5, 2.3.2
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      1. Find or create a multi-page quiz, using a behaviour like immediate feedback that has 'Check' buttons.

      2. Attempt it as a student. During the attempt, edit the URL to change &page= to something crazy like &page=-100 or &page=1234.

      3. Verify that the first or last page is shown instead.

      4. Verify that the buttons like Check and Next work as expected.

      Show
      1. Find or create a multi-page quiz, using a behaviour like immediate feedback that has 'Check' buttons. 2. Attempt it as a student. During the attempt, edit the URL to change &page= to something crazy like &page=-100 or &page=1234. 3. Verify that the first or last page is shown instead. 4. Verify that the buttons like Check and Next work as expected.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      At the moment, if it is, you get a "no questions found" error. It would be better if it just set page to the first or last page in the quiz.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timhunt Tim Hunt
                Reporter:
                timhunt Tim Hunt
                Integrator:
                Dan Poltawski
                Tester:
                David Monllaó
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Sep/12