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

File upload: Uncaught TypeError from JavaScript when uploading a single file

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • MDL-72966-master
    • Hide
      1. Go to any course.
      2. Navigate to the Question bank.
      3. Click the Import tab.
      4. Open the browser's developer tools and go to the Network tab.
      5. Throttle the connection to Slow 3G mode.
      6. Download sample_questions.xml to your computer and drag it to the "Import" file manager.
      7. Verify the 'Import' button is disabled while the file is uploading.
      8. Switch to the Console tab of the browser dev tools and check the console log.
      9. Verify there are no errors on the console log.
      Show
      Go to any course. Navigate to the Question bank. Click the Import tab. Open the browser's developer tools and go to the Network tab. Throttle the connection to Slow 3G mode. Download sample_questions.xml to your computer and drag it to the "Import" file manager. Verify  the 'Import' button is disabled while the file is uploading. Switch to the Console tab of the browser dev tools and check the console log. Verify  there are no errors on the console log.

      Step to replicate:

      1. Go to any course.
      2. Navigate to the Question bank.
      3. Click the Import button.
      4. Turn on the developer tool of the Browser and switch to the Console tab.
      5. Turn on Slow 3G mode in the developer tool.
      6. Drag the sample XML file to the file manager.
      7. Observe the Import button.
      8. Observe the Console window.

      Actual result:

      1. The Import button was not disabled during the upload.
      2. Uncaught TypeError was thrown.

      Expected result

      1. The Import button needs to be disabled during the upload.
      2. No exception was thrown in the Console window.

       

        1. exception.png
          exception.png
          270 kB
        2. MDL-72966_Test Passed.png
          MDL-72966_Test Passed.png
          77 kB
        3. sample_questions.xml
          99 kB

            jbthong Thong Bui
            huongn@moodle.com Huong Nguyen
            Tim Hunt Tim Hunt
            Jun Pataleta Jun Pataleta
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.