overhangio / openedx-scorm-xblock

SCORM XBlock for Open edX
GNU Affero General Public License v3.0
37 stars 48 forks source link

Failure when uploading a Scorm zip package #27

Closed graemeglass closed 1 year ago

graemeglass commented 1 year ago

When trying to upload a upload a SCORM .zip package the following error is displayed:

AccessDeniedAccess DeniedPCD...

When looking at the logs, the only useful piece of information is the HTTP response 403

Could this be permission issue in this xblock settings or in the broader edX settings?

regisb commented 1 year ago

Please paste the full error logs. Also, do you use the MinIO plugin?

regisb commented 1 year ago

Did you manage to resolve this issue? If yes, can we close this?

connorhaugh commented 1 year ago

Hi @regisb I have taken on this project as a hackathon task for the next couple of days. Following up on graeme's note.

here are a couple of factors:

this is the 2U installation (not Tutor).

We opted to use the default django storage backend for our instance (S3). We have verified that the scorm files are being stored in s3 at the <edx asset uploads bucket url>/scorm/<block_id>/<sha>/playing.html "folder". We however, have not configured any special Asset url or storage function.

The trouble comes when attempting to retrieve the playing.html file (which is the first file needed on load).

the url listed above returns a 403.

would this be related to the fact that scorm files are not themselves course assets, and therefore we need to set their asset-read permissions to map to course permissions?

Note this has nothing to do with xframe-origins settings, we have already dealt with those.

graemeglass commented 1 year ago

This is being addressed in https://github.com/overhangio/openedx-scorm-xblock/pull/29