Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Embedding a video file (mp4 and webm were tried) isn't working because the video file fails to load. Apache complains the file has the wrong permissions.
When I check the file permissions were only accessible by the user of the django process (user 'pga').
Possible something changed with the new version of Django and/or Wagtail (see AIRAVATA-3376) with how media file upload permissions are handled. See https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-FILE_UPLOAD_PERMISSIONS which may need to be adjusted.
workaround
Make the file world readable:
chmod a+r /var/www/portals/django-delta/airavata-django-portal/django_airavata/media/documents/tutorialVideoFinal.webm