#13750: ImageField accessing height or width and then data results in "I/O
operation on closed file"
--------------------------------------+------------------------------------
Reporter: ROsborne | Owner: aethemba
Type: Bug | Status: assigned
Component: File uploads/storage | Version: 1.2
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 aethemba):
I've updated the patch code and I've added the updated test results.
Some tests are now failing because they expect the imagefile to be closed
(e.g., tests/modelfields/test_imagefield.py line 165, after getting the
size of an image).
I'm assuming that, given the description in this ticket, we want to
retrieval of the image (and not an image property) to leave the file open.
Is that a correct assumption? And if so, isn't that rather inconsistent
behaviour?
--
Ticket URL: <https://code.djangoproject.com/ticket/13750#comment:11>
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/066.b7a45cabeebb5900907e4f76e621805a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.