#36298: file_move_safe with allow_overwrite=True does not truncate previous file
when there is an OSError error on rename
-------------------------------------+-------------------------------------
     Reporter:  Sarah Boyce          |                    Owner:  Sarah
                                     |  Boyce
         Type:  Bug                  |                   Status:  closed
    Component:  File                 |                  Version:  5.2
  uploads/storage                    |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

 In [changeset:"39b144baddca433b9aa28f99e595ffcc191c0bee" 39b144ba]:
 {{{#!CommitTicketReference repository=""
 revision="39b144baddca433b9aa28f99e595ffcc191c0bee"
 [5.1.x] Fixed #36298 -- Truncated the overwritten file content in
 file_move_safe().

 Regression in 58cd4902a71a3695dd6c21dc957f59c333db364c.

 Thanks Baptiste Mispelon for the report.

 Backport of 8ad3e80e88201f4c557f6fa79fcfc0f8a0961830 from main.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36298#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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070196109bccd5-619872ac-bf99-4161-bfe9-27a9955242af-000000%40eu-central-1.amazonses.com.

Reply via email to