#35619: django.core.files.uploadfile.InMemoryUploadedFile has a serious bug
------------------------+------------------------------------------------
     Reporter:  qhsoft  |                     Type:  Bug
       Status:  new     |                Component:  File uploads/storage
      Version:  5.0     |                 Severity:  Release blocker
     Keywords:          |             Triage Stage:  Unreviewed
    Has patch:  0       |      Needs documentation:  0
  Needs tests:  0       |  Patch needs improvement:  0
Easy pickings:  0       |                    UI/UX:  0
------------------------+------------------------------------------------
 in class django.core.files.uploadfile.InMemoryUploadedFile

     def chunks(self, chunk_size=None):
         self.file.seek(0)
         yield self.read() # this code, **should be yield
 self.read(chunk_size)**

 This bug will cause us to fail when writing to the file system after
 reading the uploaded content, with the error "OSError: [Errno 5]
 Input/output error"
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35619>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070190ca881f06-ba957dc5-0b48-47bc-b527-f937bff5d5bf-000000%40eu-central-1.amazonses.com.

Reply via email to