[Django] #29188: ContentFile.size remains constant after initializing

5 views
Skip to first unread message

Django

unread,
Mar 5, 2018, 3:17:12 PM3/5/18
to django-...@googlegroups.com
#29188: ContentFile.size remains constant after initializing
-------------------------------------------+------------------------
Reporter: Maksim Iakovlev | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
{{{
>>> cf = ContentFile('')
>>> cf.size
0
>>> cf.write('asd')
3L
>>> cf.size
0
}}}

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

Django

unread,
Mar 5, 2018, 7:20:58 PM3/5/18
to django-...@googlegroups.com
#29188: ContentFile.size remains constant after initializing
--------------------------------------+------------------------------------

Reporter: Maksim Iakovlev | Owner: nobody
Type: Bug | Status: new
Component: File uploads/storage | Version: 1.11
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
--------------------------------------+------------------------------------
Changes (by Tim Graham):

* component: Uncategorized => File uploads/storage
* stage: Unreviewed => Accepted


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

Django

unread,
Mar 6, 2018, 4:43:22 PM3/6/18
to django-...@googlegroups.com
#29188: ContentFile.size remains constant after initializing
-------------------------------------+-------------------------------------
Reporter: Maksim Iakovlev | Owner: Alex
| Stovbur
Type: Bug | Status: assigned
Component: File | Version: 1.11
uploads/storage |

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
-------------------------------------+-------------------------------------
Changes (by Alex Stovbur):

* cc: Alex Stovbur (added)
* owner: nobody => Alex Stovbur
* status: new => assigned


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

Django

unread,
Mar 7, 2018, 4:29:43 PM3/7/18
to django-...@googlegroups.com
#29188: ContentFile.size remains constant after initializing
-------------------------------------+-------------------------------------
Reporter: Maksim Iakovlev | Owner: Alex
| Stovbur
Type: Bug | Status: assigned
Component: File | Version: 1.11
uploads/storage |
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
-------------------------------------+-------------------------------------
Changes (by Alex Stovbur):

* has_patch: 0 => 1


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

Django

unread,
Mar 7, 2018, 4:30:45 PM3/7/18
to django-...@googlegroups.com
#29188: ContentFile.size remains constant after initializing
-------------------------------------+-------------------------------------
Reporter: Maksim Iakovlev | Owner: Alex
| Stovbur
Type: Bug | Status: assigned
Component: File | Version: 1.11
uploads/storage |
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 Alex Stovbur):

PR - https://github.com/django/django/pull/9763

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

Django

unread,
Mar 8, 2018, 2:37:00 PM3/8/18
to django-...@googlegroups.com
#29188: ContentFile.size remains constant after initializing
-------------------------------------+-------------------------------------
Reporter: Maksim Iakovlev | Owner: Alex
| Stovbur
Type: Bug | Status: closed

Component: File | Version: 1.11
uploads/storage |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

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


Comment:

In [changeset:"2d9ec4d735871b44c7a05d6e0aa3f92763f667f5" 2d9ec4d7]:
{{{
#!CommitTicketReference repository=""
revision="2d9ec4d735871b44c7a05d6e0aa3f92763f667f5"
Fixed #29188 -- Fixed ContentFile.size after a write().
}}}

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

Reply all
Reply to author
Forward
0 new messages