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

SCORM - detect invalid packages with extra directory and show specific error

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4, 2.4.5, 2.5.1
    • Fix Version/s: 2.6
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide

      Test 1:
      Using Drag/drop onto course homepage Create a SCORM and use the file attached to this issue - it should fail (no specific error is shown with drag/drop yet)

      Test 2:
      Using Drag/drop onto course homepage Create a SCORM and use a normal SCORM package - make sure it adds correctly.

      Test 3
      Using add an activity Create a SCORM and use the file attached to this issue - it should display an error "Invalid package detected - the imsmanifest.xml file must sit in the root of your package, not inside a directory."

      Test 2:
      Using add an activity Create a SCORM and use a normal SCORM package - make sure it adds correctly.

      Show
      Test 1: Using Drag/drop onto course homepage Create a SCORM and use the file attached to this issue - it should fail (no specific error is shown with drag/drop yet) Test 2: Using Drag/drop onto course homepage Create a SCORM and use a normal SCORM package - make sure it adds correctly. Test 3 Using add an activity Create a SCORM and use the file attached to this issue - it should display an error "Invalid package detected - the imsmanifest.xml file must sit in the root of your package, not inside a directory." Test 2: Using add an activity Create a SCORM and use a normal SCORM package - make sure it adds correctly.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      master_MDL-35380

      Description

      many SCORM packages are created with an extra directory that contains the SCORM package - correct packages will have the content in the root of the package but when manually zipping in windows by right clicking on a directory it will create the extra dir and some authoring tools appear to package them incorrectly too - see: http://moodle.org/mod/forum/discuss.php?d=210070

      We should make it easier on teachers and automatically detect the extra dir. Ideally I'd like to handle this by stripping the extra directory out but that's a bit more work and it's easier to just provide a specific error message about the package.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              danmarsden Dan Marsden
              Reporter:
              danmarsden Dan Marsden
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Damyon Wiese
              Tester:
              Damyon Wiese
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/13