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

Downloaded packages are not auto-updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.9.5, 3.0.3
    • 3.0
    • SCORM
    • MOODLE_30_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MDL-52459-master
    • Hide
      1. In Plugins - Activity modules - SCORM settings, enable downloaded packages
      2. Create a new package, using the Downloaded package method pointing to a SCORM package hosted in your localhost server, you can use one of the singlesco here: https://github.com/moodle/moodle/tree/master/mod/scorm/tests/packages
      3. Configure the Auto-update frequency to update the package everytime it's used
      4. View the SCORM package and confirm that is displayed correctly
      5. Now, unzip the package and change some information in the imsmanifest.xml file (like an item title) or any html page contents
      6. Create again a zip package containing all the files (including the one you modified) and replace the original one
      7. Reload the SCORM package in Moodle and confirm that you see the changes you made
      8. Edit the SCORM settings and change the auto-update frequency to "Every day"
      9. Do new changes again in the SCORM and replace the zip file
      10. Reload the SCORM package in Moodle and confirm that you don't see the changes you just made
      11. Now, force the SCORM module cron execution (the best way is to comment in scorm/lib.php scorm_cron function this line: if ($CFG->scorm_updatetimelast < $updatetime and $timenow > $updatetime) { and execute the admin/cron.php
      12. Once the cron finishes, reload the SCORM and confirm that you see the changes you made
      Show
      In Plugins - Activity modules - SCORM settings, enable downloaded packages Create a new package, using the Downloaded package method pointing to a SCORM package hosted in your localhost server, you can use one of the singlesco here: https://github.com/moodle/moodle/tree/master/mod/scorm/tests/packages Configure the Auto-update frequency to update the package everytime it's used View the SCORM package and confirm that is displayed correctly Now, unzip the package and change some information in the imsmanifest.xml file (like an item title) or any html page contents Create again a zip package containing all the files (including the one you modified) and replace the original one Reload the SCORM package in Moodle and confirm that you see the changes you made Edit the SCORM settings and change the auto-update frequency to "Every day" Do new changes again in the SCORM and replace the zip file Reload the SCORM package in Moodle and confirm that you don't see the changes you just made Now, force the SCORM module cron execution (the best way is to comment in scorm/lib.php scorm_cron function this line: if ($CFG->scorm_updatetimelast < $updatetime and $timenow > $updatetime) { and execute the admin/cron.php Once the cron finishes, reload the SCORM and confirm that you see the changes you made

      I'm not sure if this is a bug or a feature, but downloaded packages are not auto-updated via cron when an auto-update frequency is set to every-day.

      The package is only updated when the URL reference change, but if you update the remote package zip, it's never downloaded again (except when you update the SCORM settings)

            jleyva Juan Leyva
            jleyva Juan Leyva
            Dan Marsden Dan Marsden
            David Monllaó David Monllaó
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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