summaryrefslogtreecommitdiff
path: root/docs/releases/4.2.21.txt
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-04-04 09:52:22 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-04-07 16:11:36 +0200
commit8ad3e80e88201f4c557f6fa79fcfc0f8a0961830 (patch)
tree0823e460a23931e7dcb098d2d8d34783fb1ec335 /docs/releases/4.2.21.txt
parentd4a2809c2b878317a4fa0e1cbaf07322ffd7f2fb (diff)
Fixed #36298 -- Truncated the overwritten file content in file_move_safe().
Regression in 58cd4902a71a3695dd6c21dc957f59c333db364c. Thanks Baptiste Mispelon for the report.
Diffstat (limited to 'docs/releases/4.2.21.txt')
-rw-r--r--docs/releases/4.2.21.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/releases/4.2.21.txt b/docs/releases/4.2.21.txt
new file mode 100644
index 0000000000..36e24df12f
--- /dev/null
+++ b/docs/releases/4.2.21.txt
@@ -0,0 +1,15 @@
+===========================
+Django 4.2.21 release notes
+===========================
+
+*Expected May 7, 2025*
+
+Django 4.2.21 fixes a data loss bug in 4.2.20.
+
+Bugfixes
+========
+
+* Fixed a data corruption possibility in ``file_move_safe()`` when
+ ``allow_overwrite=True``, where leftover content from a previously larger
+ file could remain after overwriting with a smaller one due to lack of
+ truncation (:ticket:`36298`).