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

Redirect error when continuing an overdue quiz attempt with password

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.7, 2.5.4, 2.6.1
    • Fix Version/s: 2.5.5, 2.6.2
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide
      1. As teacher/admin, create a quiz with
        • Time limit: 30 seconds
        • When time expires: ... grace period ...
        • Submission grace period: 2 days
        • Require password: frog
      2. Add any question (it does not matter what).
      3. As a student start an attempt at this quiz. You will need to enter the password.
      4. Log out of Moodle before time expires in the quiz.
      5. After time expires, log back in, go to the quiz.
      6. On the quiz page, under Summary of your previous attempts, you should see your attempt shown as 'Overdue'.
      7. Click Continue last attempt, and ender the password.
      8. You should end up on the summary page, where you should be able to submit the attempt.
      9. Now start another attempt, click 'End test...', copy that URL, and log out, all before time expires.
      10. Go straight to that summary.php URL.
      11. First you will be redirected to the login page. Log in.
      12. Then you will be redirected to the enter quiz password page, do that.
      13. Then you should get back to the quiz summary page, where you can submit.
      Show
      As teacher/admin, create a quiz with Time limit: 30 seconds When time expires: ... grace period ... Submission grace period: 2 days Require password: frog Add any question (it does not matter what). As a student start an attempt at this quiz. You will need to enter the password. Log out of Moodle before time expires in the quiz. After time expires, log back in, go to the quiz. On the quiz page, under Summary of your previous attempts, you should see your attempt shown as 'Overdue'. Click Continue last attempt, and ender the password. You should end up on the summary page, where you should be able to submit the attempt. Now start another attempt, click 'End test...', copy that URL, and log out, all before time expires. Go straight to that summary.php URL. First you will be redirected to the login page. Log in. Then you will be redirected to the enter quiz password page, do that. Then you should get back to the quiz summary page, where you can submit.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      This only occurs if a password has been set in the 'Extra restrictions on attempts' section.
      To replicate the problem:
      create a quiz with an open and close date
      allow a submission grace period past the close date
      set a password in the 'Extra restrictions on attempts' section
      save the settings.
      Login as a student who has state=overdue
      Select the quiz with the password set.
      Select 'Continue the last attempt'
      The following error is displayed:

      The page isn't redirecting properly

      Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            ccaajoa Jo Matthews
            Peer reviewer:
            Jason Fowler
            Integrator:
            Dan Poltawski
            Tester:
            David Monllaó
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/Mar/14