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

Detect if resources are no longer accessible when offline use is disabled

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Waiting for testing
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.5
    • Fix Version/s: None
    • Component/s: Course contents add-on
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. As admin in web, create a course with one resource of each type: book, folder, imscp, page, resource (file), url. It's recommended to put them all in the same section.
      2. Disable "Offline use" in the site.
      3. In the app, login as a student and open the resources in online. Check they all load fine.
      4. Once opened, go back to the course.
      5. As admin/teacher in web, hide the whole section so the student can no longer access the resource.
      6. In the app, open the resources. Check that you always see an error saying that the module wasn't found.
      Show
      This issue only needs to be tested in 1 device. As admin in web, create a course with one resource of each type: book, folder, imscp, page, resource (file), url. It's recommended to put them all in the same section. Disable "Offline use" in the site. In the app, login as a student and open the resources in online. Check they all load fine. Once opened, go back to the course. As admin/teacher in web, hide the whole section so the student can no longer access the resource. In the app, open the resources. Check that you always see an error saying that the module wasn't found.
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 4.0

      Description

      Reported by Shamim:

      1. As admin in web, create a course with at least 1 resource (e.g. a page) and 1 activity (e.g. a choice).
      2. Disable "Offline use" in the site.
      3. In the app, login as a student and open the resource and the activity. Check they both load fine.
      4. Once opened, go back to the course.
      5. As admin/teacher, hide both modules so the student can no longer access them.
      6. In the app, click the resource. Check that it still opens fine (ideally it should display an error).
      7. Go back to the course and click the activity. Check that it displays an error.

      The reason is that we still allow downloading files even if offline use is disabled (to prevent refactor all resources), and WS calls are optional in resources so the app doesn't know that the resource is no longer accessible. IMO we shouldn't ignore WS calls errors if the error comes from Moodle.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Noel De Martin Noel De Martin
            Integrator:
            Noel De Martin Noel De Martin
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: