Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2913

Errors on prefetch section

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.1
    • Component/s: Courses
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. In web as teacher, create a new course and put a quiz with password that can be attempted in offline.
      2. In the app, login as a student and open the course.
      3. Enable the downloads in the course (top-right menu). Check that you see the download button both in "All sections" and in the section that has the quiz.
      4. Perform a PTR. When done, check that you still see the download button both in "All sections" and in the section that has the quiz.
      5. Now click to download the section. Check that, once it's done, you see an error saying that the quiz password was incorrect and the section button goes back to the download button (the spinner disappears).
      6. Repeat the same test but clicking the download button in "All sections". The result should be the same, you see an error and the buttons go back to download button.
      Show
      This issue only needs to be tested in 1 device. In web as teacher, create a new course and put a quiz with password that can be attempted in offline. In the app, login as a student and open the course. Enable the downloads in the course (top-right menu). Check that you see the download button both in "All sections" and in the section that has the quiz. Perform a PTR. When done, check that you still see the download button both in "All sections" and in the section that has the quiz. Now click to download the section. Check that, once it's done, you see an error saying that the quiz password was incorrect and the section button goes back to the download button (the spinner disappears). Repeat the same test but clicking the download button in "All sections". The result should be the same, you see an error and the buttons go back to download button.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Sprint:
      Moodle Mobile 3.6.1

      Description

      There are some problems with prefetching sections.

      PROBLEM 1:

      Section download button is now shown after PTR on a section with download options enabled.

      PROBLEM 2:

      When a prefetch has an error, section download does not finish.

      To reproduce:

      1. Enter into the dev course quiz section.
      2. Enabled downloads.
      3. Download the section.
      4. It will ask the size of the download, and after it will show an error that the password is incorrect.
      5. Download status will stay with the spinner and X / X+1 (only one left) forever.
      6. I think it's related to the password problem. (after ptr, all but this has state "notdownloaded"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              pferre22 Pau Ferrer
              Peer reviewer:
              Albert Gasset
              Integrator:
              Juan Leyva
              Tester:
              Isabel Renedo Rouco
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                29/Mar/19