#30807: test_extract_file_permissions test fails when umask is set to 000.
-----------------------------------+------------------------------------
     Reporter:  Brady              |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by Ad Timmering):

 Looking a bit deeper, I am puzzled by the test setup, that might be hiding
 a different bug:

 * The archive has a file called `no_permissions` that is `0o0` (zero
 permissions) in the archive

 * The current test assumes the file ends up with something similar to
 `0o664`, which means rw-rw-r--, so also read/write for group and other.

 * The reason this works is because `django.utils.archive.BaseArchive` has
 a method called `_copy_permissions` that only reflects permissions **if**
 the file in the archive at least has 0o4 (owner-read, defined in
 `stat.S_IROTH`). Because this file has no permissions (also no user read),
 permissions are not correctly updated to reflect permissions in the
 archive.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30807#comment:3>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.b6205aa686253f56e80a59b471f7c4bf%40djangoproject.com.

Reply via email to