[Django] #23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation

7 views
Skip to first unread message

Django

unread,
Jul 25, 2014, 6:40:41 AM7/25/14
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+--------------------
Reporter: jmv_deb@… | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Hello

Thank you for django.

In https://docs.djangoproject.com/en/1.6/topics/http/file-uploads
/#changing-upload-handler-behavior
and https://docs.djangoproject.com/en/1.6/ref/settings/#std:setting-
FILE_UPLOAD_PERMISSIONS

One is suggested to use octal notation like 0644. This doesn't work with
python3 (tried 3.4.1) and the correct notation now is 0o644. That notation
also works in python 2.7.

Cheers

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

Django

unread,
Jul 25, 2014, 7:24:21 AM7/25/14
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+------------------------------------
Reporter: jmv_deb@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by timo):

* needs_better_patch: => 0
* needs_tests: => 0
* easy: 0 => 1
* needs_docs: => 0
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted


Comment:

Indeed, Django's own tests use the notation you mentioned.

--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:1>

Django

unread,
Jul 25, 2014, 7:56:05 PM7/25/14
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+------------------------------------
Reporter: jmv_deb@… | Owner: dhoffman
Type: Bug | Status: assigned
Component: Documentation | Version: 1.6

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by dhoffman):

* status: new => assigned
* owner: nobody => dhoffman


--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:2>

Django

unread,
Jul 25, 2014, 9:48:41 PM7/25/14
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+------------------------------------
Reporter: jmv_deb@… | Owner: dhoffman
Type: Bug | Status: assigned
Component: Documentation | Version: 1.6

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by dhoffman):

I have completed this and made a pull request
(https://github.com/django/django/pull/2962).

I found a few other places in the docs with the same problem, so I fixed
those as well.

--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:3>

Django

unread,
Jul 26, 2014, 5:21:12 AM7/26/14
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+------------------------------------
Reporter: jmv_deb@… | Owner: dhoffman
Type: Bug | Status: closed
Component: Documentation | Version: 1.6
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"e1c85167a3de7adf51105d5f0751b39fa0d49ba7"]:
{{{
#!CommitTicketReference repository=""
revision="e1c85167a3de7adf51105d5f0751b39fa0d49ba7"
Fixed #23097 -- Switched to new octal format in docs
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:4>

Django

unread,
Jul 26, 2014, 5:22:06 AM7/26/14
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+------------------------------------
Reporter: jmv_deb@… | Owner: dhoffman
Type: Bug | Status: closed
Component: Documentation | Version: 1.6

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"08e8e2137db9381d473f6c5b6b1d4240c47b7414"]:
{{{
#!CommitTicketReference repository=""
revision="08e8e2137db9381d473f6c5b6b1d4240c47b7414"
[1.7.x] Fixed #23097 -- Switched to new octal format in docs

Backport of e1c85167a3 from master.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:5>

Django

unread,
Jul 26, 2014, 5:25:10 AM7/26/14
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+------------------------------------
Reporter: jmv_deb@… | Owner: dhoffman
Type: Bug | Status: closed
Component: Documentation | Version: 1.6

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"2630cafc86bf6cc86ec8b47f0074b42f45b1f944"]:
{{{
#!CommitTicketReference repository=""
revision="2630cafc86bf6cc86ec8b47f0074b42f45b1f944"
[1.6.x] Fixed #23097 -- Switched to new octal format in docs

Backport of e1c85167a3 from master.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:6>

Django

unread,
May 25, 2020, 3:04:26 PM5/25/20
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+-----------------------------------------
Reporter: jmv_deb@… | Owner: David Hoffman
Type: Bug | Status: closed
Component: Documentation | Version: 1.6

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+-----------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"f24b59267be2e5fc5bd1252efda3aed19f860813" f24b5926]:
{{{
#!CommitTicketReference repository=""
revision="f24b59267be2e5fc5bd1252efda3aed19f860813"
Refs #23097 -- Used new octal format in FILE_UPLOAD_PERMISSIONS docs.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:7>

Django

unread,
May 25, 2020, 3:04:52 PM5/25/20
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+-----------------------------------------
Reporter: jmv_deb@… | Owner: David Hoffman
Type: Bug | Status: closed
Component: Documentation | Version: 1.6

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+-----------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"ccf3cecbaf7cdaeeb027ca37bd93efb35ff7393b" ccf3cecb]:
{{{
#!CommitTicketReference repository=""
revision="ccf3cecbaf7cdaeeb027ca37bd93efb35ff7393b"
[3.1.x] Refs #23097 -- Used new octal format in FILE_UPLOAD_PERMISSIONS
docs.

Backport of f24b59267be2e5fc5bd1252efda3aed19f860813 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:8>

Django

unread,
May 25, 2020, 3:05:18 PM5/25/20
to django-...@googlegroups.com
#23097: Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
-------------------------------+-----------------------------------------
Reporter: jmv_deb@… | Owner: David Hoffman
Type: Bug | Status: closed
Component: Documentation | Version: 1.6

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+-----------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"f175e03fc2a759f401f7e25e153835d28bf01ee0" f175e03]:
{{{
#!CommitTicketReference repository=""
revision="f175e03fc2a759f401f7e25e153835d28bf01ee0"
[3.0.x] Refs #23097 -- Used new octal format in FILE_UPLOAD_PERMISSIONS
docs.

Backport of f24b59267be2e5fc5bd1252efda3aed19f860813 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:9>

Reply all
Reply to author
Forward
0 new messages