mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GMG-Devel] video transcoding creates excessively restricted files


From: Kushal Kumaran
Subject: Re: [GMG-Devel] video transcoding creates excessively restricted files
Date: Wed, 03 Jul 2013 00:13:16 +0530
User-agent: Notmuch/0.15.2+174~gb6d4402 (http://notmuchmail.org) Emacs/24.2.1 (x86_64-pc-linux-gnu)

ayleph <address@hidden> writes:

> On 07/02/2013 11:28 AM, ayleph wrote:
>> On 07/02/2013 11:19 AM, Kushal Kumaran wrote:
>>> Hi,
>>>
>>> I have a mediagoblin setup with nginx/separate-celery following the
>>> instructions at
>>> http://docs.mediagoblin.org/siteadmin/production-deployments.html.  When
>>> I upload a video that needs transcoding, the transcoded file and the
>>> thumbnail are created with 0600 permissions.  So nginx, which is running
>>> as a different user, is not able to serve those files.
>>>
>>> I tracked down the problem to tempfile.NamedTemporaryFile, which always
>>> creates files with 0600 permissions, rather than doing 0666 and letting
>>> the umask adjust the actual permissions.
>>>
>>> I have a patch that fixes the problem, but I'm curious to know if other
>>> people have encountered this problem, and if there are better ways to
>>> solve it.
>>
>> I have most definitely encountered this problem, but I hadn't tracked
>> down the culprit. Do you have an account on the MediaGoblin Trac site?
>> It would be the proper place to submit a bug and include your patch, I
>> think.
>>
>> http://issues.mediagoblin.org/
>
> I should have checked Trac first myself; it looks like there's already a 
> related issue from 3 weeks ago about this. No proposed solution though.
>
> http://issues.mediagoblin.org/ticket/716
>

Thanks for the pointer.  I've added a comment and the patch to issue
716.

-- 
regards,
kushal


reply via email to

[Prev in Thread] Current Thread [Next in Thread]