From 6eedb3f65b67e99826babf998155281dbc8e5b06 Mon Sep 17 00:00:00 2001 From: Nasir Hussain Date: Thu, 16 Jul 2020 18:09:44 +0500 Subject: [PATCH 1/2] MCKIN-21719 Fixed 500 instead of 404 on proxy_content MCKIN-21719 Fixed 500 instead of 404 on proxy_content storage.path works with local storage but doesn't work with s3 --- scormxblock/scormxblock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scormxblock/scormxblock.py b/scormxblock/scormxblock.py index 2f56c5a..b8e1481 100644 --- a/scormxblock/scormxblock.py +++ b/scormxblock/scormxblock.py @@ -494,7 +494,7 @@ def proxy_content(self, request, suffix=''): if ext in mimetypes.types_map: content_type = mimetypes.types_map[ext] else: - return Response('Did not exist in storage: ' + path_to_file + '\nstorage.path=' + storage.path(''), status=404, content_type='text/html', charset='UTF-8') + return Response('Did not exist in storage: ' + path_to_file , status=404, content_type='text/html', charset='UTF-8') return Response(contents, content_type=content_type) def generate_report_data(self, user_state_iterator, limit_responses=None): From 712f51a15f10dceb017af53009cdcbbbc054eb62 Mon Sep 17 00:00:00 2001 From: Nasir Hussain Date: Thu, 16 Jul 2020 18:10:45 +0500 Subject: [PATCH 2/2] updated version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 709a95f..804fab6 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def package_data(pkg, roots): setup( name='scormxblock-xblock', - version='2.1', + version='2.2', description='XBlock to integrate SCORM content packages', packages=[ 'scormxblock',