#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):

 Would it be a problem to simply open image files (specifically
 ImageFieldFile objects) in the ___get___ function of the FileDescriptor
 object? Please see the "simple approach" attachment with a potential diff.

 Currently, it fixes the new regression test but approximately  31 other
 tests fail because they test for the "open-ness" of a file. However, these
 failing tests could be adapted if people agree to this solution. (See
 13750_tests.txt)

 I'm happy to hear people's suggestions or other feedback.

--
Ticket URL: <https://code.djangoproject.com/ticket/13750#comment:8>
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.f6ec8667df78aaff3f779ed44c028776%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to