#21219: The FILE_UPLOAD_PERMISSIONS should not be used when deploying static 
files
-------------------------------------+------------------------------------
     Reporter:  dblack+django@…      |                    Owner:  vajrasky
         Type:  New feature          |                   Status:  assigned
    Component:  contrib.staticfiles  |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+------------------------------------

Comment (by vajrasky):

 This is the new pull request. https://github.com/django/django/pull/1779

 Some notes:
 1. There is no way to set permission to the directories of static files
 either with FILE_UPLOAD_PERMISSIONS and FILE_DIRECTORY_UPLOAD_PERMISSIONS.
 Therefore I can not override the directories permission by subclassing
 StaticFilesStorage without a lot of works. I prefer to create a separate
 ticket for this bug. One step at at time.

 2. At first, I want to add file_permissions_mode class attribute in
 Storage or FileSystemStorage class and give the default value of
 FILE_UPLOAD_PERMISSIONS to this class attribute. However some tests depend
 on the behaviour of FileSystemStorage checking the value of
 FILE_UPLOAD_PERMISSIONS at the *last minute* before setting the
 permissions to uploaded files. So from engineering perspective, this
 behaviour is a little bit inconsistent with the StaticFilesStorage. But
 there is nothing I can do.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21219#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/085.3925ff4b4a92a5df62982964e40bedc0%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to