Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#26494 closed Bug (fixed)

executable flags lost when using an archive as a project/app template

Reported by: Jakub Dorňák Owned by: nobody
Component: Utilities Version: dev
Severity: Normal Keywords:
Cc: desecho@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

If I create new project using an archive (both zip or tar.gz) containing an executable manage.py, e.g. django-admin startproject --template=~/template.zip mysite, manage.py is not executable in the resulting project. If I unpack the archive first and than use the directory as a template, it works as expected.

Change History (4)

comment:1 by Tim Graham, 8 years ago

Description: modified (diff)
Summary: executable flags lost when using an archive as a templateexecutable flags lost when using an archive as a project/app template
Triage Stage: UnreviewedAccepted

I'm not sure if the issue is with Django or with Python (e.g. https://bugs.python.org/issue15795 looks like a related issue) but accepting for further investigation. django/utils/archive.py is likely the place to investigate.

comment:2 by Anton Samarchyan, 8 years ago

Cc: desecho@… added
Has patch: set
Version: 1.9master

Added PR

comment:3 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: newclosed

In d0112cf9:

Fixed #26494 -- Made Archive.extract() preserve file permissions.

comment:4 by Karen Tracey, 8 years ago

#27628 has been opened to note a regression introduced by this fix.

Note: See TracTickets for help on using tickets.
Back to Top