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

File upload still gets stuck if try to leave page mid-upload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.10.4, 3.11
    • Fix Version/s: 3.10.5, 3.11.1
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      Issue 1:

      1. Attempt a quiz has an essay question can attachment file

      1. Create a Quiz that has an essay question can attach file.
      2. Log in as a student in the course, attempt the quiz.
      3. Open your browser's dev tools and in the network tab (chrome and firefox have this), you'll see a 'throttling' menu item near the right side. Set this to '3G' or the like, preferable as slow as you can set it.
      4. Next to the page has an essay question.
      5. Now, drag a 1MB image file (or thereabouts in size) from your local to the attachment area.
      6. Verify that the Next page / Previous page/ Fishnish attempt (Quiz attempt's navigation button) is disabled.

      2. Attempt a quiz that has multi-choice questions and essay questions on the same page.

      1. Create a quiz with question behavior that is interactive with multiple tries.
      2. Log in as a student in the course, attempt the quiz.
      3. Open your browser's dev tools and in the network tab (chrome and firefox have this), you'll see a 'throttling' menu item near the right side. Set this to '3G' or the like, preferable as slow as you can set it.
      4. Next to the page has an essay question and the multiple-choice question.
      5. Now, drag a 1MB image file (or thereabouts in size) from your local to the attachment area.
      6. Verify that the Check button under the multi-choice question is disabled.

      3. Preview the essay question.

      1. Log in as admin in the course, create the essay question which can attachment file.
      2. Select preview the question.
      3. Open your browser's dev tools and in the network tab (chrome and firefox have this), you'll see a 'throttling' menu item near the right side. Set this to '3G' or the like, preferable as slow as you can set it.
      4. Now, drag a 1MB image file (or thereabouts in size) from your local to the attachment area.
      5. Verify that the Save and the Submit and finish button is disabled.

      Issue 2:

      1. Create a quiz that has an essay question can attach file.
      2. Log in as a student in the course, attempt the quiz.
      3. Upload a file, waiting for the upload progress to be done.
      4. Re-upload the old file, when the popup appears ("There is already a file called [filename]"), then press cancel.
      5. Verify that the Next page / Previous page/ Fishnish attempt is enabled.
      Show
      Issue 1: 1. Attempt a quiz has an essay question can attachment file Create a Quiz that has an essay question can attach file. Log in as a student in the course, attempt the quiz. Open your browser's dev tools and in the network tab (chrome and firefox have this), you'll see a 'throttling' menu item near the right side. Set this to '3G' or the like, preferable as slow as you can set it. Next to the page has an essay question. Now, drag a 1MB image file (or thereabouts in size) from your local to the attachment area. Verify that the Next page / Previous page / Fishnish attempt (Quiz attempt's navigation button) is disabled. 2. Attempt a quiz that has multi-choice questions and essay questions on the same page. Create a quiz with question behavior that is interactive with multiple tries. Log in as a student in the course, attempt the quiz. Open your browser's dev tools and in the network tab (chrome and firefox have this), you'll see a 'throttling' menu item near the right side. Set this to '3G' or the like, preferable as slow as you can set it. Next to the page has an essay question and the multiple-choice question. Now, drag a 1MB image file (or thereabouts in size) from your local to the attachment area. Verify that the Check button under the multi-choice question is disabled. 3. Preview the essay question. Log in as admin in the course, create the essay question which can attachment file. Select preview the question. Open your browser's dev tools and in the network tab (chrome and firefox have this), you'll see a 'throttling' menu item near the right side. Set this to '3G' or the like, preferable as slow as you can set it. Now, drag a 1MB image file (or thereabouts in size) from your local to the attachment area. Verify that the Save and the Submit and finish button is disabled. Issue 2: Create a quiz that has an essay question can attach file. Log in as a student in the course, attempt the quiz. Upload a file, waiting for the upload progress to be done. Re-upload the old file, when the popup appears ("There is already a file called [filename] "), then press cancel. Verify that the Next page / Previous page / Fishnish attempt is enabled.
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE
    • Pull 3.10 Branch:
      MDL-71644-310
    • Pull 3.11 Branch:
      MDL-71644-311
    • Pull Master Branch:
      MDL-71644-master

      Description

      Issue 1:
      In the quiz with the essay question, or the question can attachment file.
      During the upload process, if the user presses the Previous Page/ Next Page or Finish attempt button, Moodle notifies for user information confirm to leave the page. If we press cancel, the upload process continues, and buttons are disabled, but after the upload process is finished, we can not interact with buttons quiz's navigation.

      Besides that, we should also disable the buttons below:
      1. The "check" button in the quiz has a multiple-choice question and an essay question on the same page.
      2. The Save button and Submit and finish button when preview question.
      3. The Check button in a quiz with how questions behave: interactive with multiple tries

       

      Issue 2:

      The submit buttons are not enabled after closing the popup:

      1. Create a quiz with How qusetions behave: interactive with mulitple tries.
      2. Add a multiple choice quesion and an essay question on the same page.
      3. Upload a file, waiting for the upload progress is done.
      4. Reupload the old file, when the popup appear ("There is already a file called [filename]"), then press cancel.

       => The submit buttons are not enabled. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jbthong Thong Bui
              Reporter:
              jbthong Thong Bui
              Peer reviewer:
              Tim Hunt Tim Hunt
              Integrator:
              Adrian Greeve Adrian Greeve
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jul/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h