Closed mrblippy closed 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
All done back in July - was just missing labels and update. Closing.
Describe the bug When an zip file is uploaded using the attachment control, oEQ looks inside the zip file for an imsmanifest.xml file. That's how it determines if the zip is a SCORM or IMS package.
However, any Scorm or IMS packages which contain filenames with special characters (eg. é) will not get detected as a content package. It will fail silently behind the scenes, and just treat the attachment as a regular zip.
https://github.com/openequella/openEQUELLA/blob/a4c1501fadddb7f2ccdff9848bb5c801c02d219c/Source/Plugins/Core/com.equella.core/src/com/tle/core/services/impl/FileSystemServiceImpl.java#L965 is using code inside the java.util.zip package, which is throwing an IllegalArgumentException("MALFORMED") when it encounters a filename with a special character. It's using UTF8 encoding
To Reproduce Steps to reproduce the behavior:
Expected behavior Any valid scorm or ims packages uploaded into oEQ should be detected as a package file, and ask how you want the file to be treated.
Platform: