airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-3403) Wagtail movie file upload is not able to be embedded
Date Mon, 01 Feb 2021 22:22:00 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276703#comment-17276703
] 

ASF subversion and git services commented on AIRAVATA-3403:
-----------------------------------------------------------

Commit 07f5b36140d82d272717719eb193bdbb9941951d in airavata-django-portal's branch refs/heads/master
from Marcus Christie
[ https://gitbox.apache.org/repos/asf?p=airavata-django-portal.git;h=07f5b36 ]

AIRAVATA-3403 Fix file permissions of large file uploads

Uploads of Wagtail media over 2.5 MB are uploaded to the tmp dir
and then moved into the media folder. Their permissions in tmp dir
before this setting were os-dependent but in our production env
it was user-readable only (0x600). This fix ensures these files
are world-readable and so are accessible to Apache.


> Wagtail movie file upload is not able to be embedded
> ----------------------------------------------------
>
>                 Key: AIRAVATA-3403
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3403
>             Project: Airavata
>          Issue Type: Bug
>          Components: Django Portal
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>
> 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.
> h2. workaround
> Make the file world readable:
> {code}
> chmod a+r /var/www/portals/django-delta/airavata-django-portal/django_airavata/media/documents/tutorialVideoFinal.webm

> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message