Skip to content

Updating a SCORM from "Learning paths" does not work #4429

Closed
@juan-cortizas-ponte

Description

@juan-cortizas-ponte

Describe

The update SCORM feature, on "Learning paths" list, does not work since this commit that adds the bigupload lib. Chamilo does not create anymore a folder with the zip original name at app/courses/{course_code}/scorm/, but a folder with a random name. So when you try to update the SCORM, the name of the original zip does not match the folder name that Chamilo creates and the update process fail.

To Reproduce

  1. Upload a new SCORM zip file
  2. Click on the update icon for the scorm uploaded
  3. Select again the SCORM zip file
  4. See error

Expected behavior

The behavior when importing a SCORM should be the same as before the commit 28fee3c73168c67a024a526f4d37c422633c4270.

The folder created when importing the SCORM should have the same name as the zip file

Screenshots

The update tool location:
imagen

Debugging the import of a new SCORM on lp_upload.php, the SCORM original name is "scorm12-120621-271.zip":
imagen

Debugging the import of a new SCORM on scorm.class.php:
imagen

Debugging the import of a new SCORM on scorm.class.php:
imagen

Uploading the same SCORM zip file again as an update of the previously imported, path names check fail:
imagen

Error:
imagen

Desktop:

  • OS: Windows 10
  • Browser Firefox 105.0.3 (64-bit)

Desktop:

  • OS: Windows 10
  • Browser Chrome 106.0.5249.119 (64 bits)

Server

  • OS: Debian GNU/Linux 10 (buster)
  • Version of Chamilo: 1.11.x of 2022-06-22
  • Version of PHP: 7.2.30

Server

  • OS: Windows 10
  • Version of Chamilo: 1.11.x of 2022-10-20
  • Version of PHP: 7.2.31

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions