Adam Johnson
291fa5fbbe
[5.1.x] Refs #31405 -- Improved LoginRequiredMiddleware documentation.
...
co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Backport of 49815f70e4508ae21135f725da177fc2935de32c from main.
2024-08-08 10:07:12 +02:00
Natalia
52a0a0893e
[5.1.x] Added stub release notes for 5.1.1.
...
Backport of 790f0f8868b0cde9a9bec1f0621efa53b00c87df from main.
2024-08-07 10:41:01 -03:00
Natalia
8baab82fc2
[5.1.x] Finalized release notes for Django 5.1.
...
Backport of 8ad6dc636bd29825937e02b5b689fb278f456f63 from main.
2024-08-07 10:12:37 -03:00
Sarah Boyce
d787e44e1e
[5.1.x] Added CVE-2024-41989, CVE-2024-41990, CVE-2024-41991, and CVE-2024-42005 to security archive.
...
Backport of fdc638bf4a35b5497d0b3b4faedaf552da792f99 from main.
2024-08-06 17:26:38 +02:00
Simon Charette
e2583fbc2e
[5.1.x] Fixed CVE-2024-42005 -- Mitigated QuerySet.values() SQL injection attacks against JSON fields.
...
Thanks Eyal (eyalgabay) for the report.
2024-08-06 08:51:22 +02:00
Mariusz Felisiak
bd807c0c25
[5.1.x] Fixed CVE-2024-41991 -- Prevented potential ReDoS in django.utils.html.urlize() and AdminURLFieldWidget.
...
Thanks Seokchan Yoon for the report.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-08-06 08:51:22 +02:00
Sarah Boyce
0c1a890916
[5.1.x] Fixed CVE-2024-41990 -- Mitigated potential DoS in urlize and urlizetrunc template filters.
...
Thanks to MProgrammer for the report.
2024-08-06 08:51:22 +02:00
Sarah Boyce
0504af6429
[5.1.x] Fixed CVE-2024-41989 -- Prevented excessive memory consumption in floatformat.
...
Thanks Elias Myllymäki for the report.
Co-authored-by: Shai Berger <shai@platonix.com>
2024-08-06 08:51:22 +02:00
Sarah Boyce
2ba4f4b0b5
[5.1.x] Fixed #35657 -- Made FileField handle db_default values.
...
Backport of 8deb6bb1fc427762d56646bf7306cbd11fb5bb68 from main.
2024-08-05 16:37:26 -03:00
David Sanders
aed4ffe189
[5.1.x] Fixed #35638 -- Updated validate_constraints to consider db_default.
...
Backport of 509763c79952cde02d9f5b584af4278bdbed77b2 from main.
2024-08-05 17:36:15 +02:00
John Parton
88ebcb1856
[5.1.x] Fixed #35628 -- Allowed compatible GeneratedFields for ModelAdmin.date_hierarchy.
...
Backport of 7f8d839722b72aeb3ec5a4278ae57c18283acacd from main.
2024-08-05 15:28:40 +02:00
Sarah Boyce
405cecd65c
[5.1.x] Added stub release notes and release date for 5.0.8 and 4.2.15.
...
Backport of 3f880890699d4412cf23b59dba425111f62afb3a from main.
2024-07-31 11:24:35 +02:00
Lorenzo Peña
741f33eaf1
[5.1.x] Fixed #35627 -- Raised a LookupError rather than an unhandled ValueError in get_supported_language_variant().
...
LocaleMiddleware didn't handle the ValueError raised by
get_supported_language_variant() when language codes were
over 500 characters.
Regression in 9e9792228a6bb5d6402a5d645bc3be4cf364aefb.
Backport of 0e94f292cda632153f2b3d9a9037eb0141ae9c2e from main.
2024-07-25 09:40:49 +02:00
Simon Charette
d8116bf7f5
[5.1.x] Fixed #35625 -- Fixed a crash when adding a field with db_default and check constraint.
...
This is the exact same issue as refs #30408 but for creating a model with a
constraint containing % escapes instead of column addition. All of these issues
stem from a lack of SQL and parameters separation from the BaseConstraint DDL
generating methods preventing them from being mixed with other parts of the
schema alteration logic that do make use of parametrization on some backends
(e.g. Postgres, MySQL for DEFAULT).
Prior to the addition of Field.db_default and GeneratedField in 5.0
parametrization of DDL was never exercised on model creation so this is
effectively a bug with db_default as the GeneratedField case was addressed by
refs #35336 .
Thanks Julien Chaumont for the report and Mariusz Felisiak for the review.
Backport of f359990e4909db8722820849d61a6f5724338723 from main.
2024-07-25 07:51:45 +02:00
Mariusz Felisiak
e5d2664908
[5.1.x] Updated asgiref dependency for 5.1 release series.
...
Backport of df35cf578f99522dd1ba864d513be95d47bab7a5 from main.
2024-07-24 08:25:45 +02:00
Hisham Mahmood
5eef80b56e
[5.1.x] Fixed #35606 , Refs #34045 -- Fixed rendering of ModelAdmin.action_checkbox for models with a __html__ method.
...
Thank you Claude Paroz for the report.
Regression in 85366fbca723c9b37d0ac9db1d44e3f1cb188db2.
Backport of 182f262b15882649bbc39d769f9b721cf3660f6f from main.
2024-07-18 08:12:36 +02:00
Simon Charette
4d8e574379
[5.1.x] Fixed #35594 -- Added unique nulls distinct validation for expressions.
...
Thanks Mark Gensler for the report.
Backport of adc0b6aac3f8a5c96e1ca282bc9f46e28d20281c from main.
2024-07-17 12:56:01 +02:00
Sarah Boyce
91a5b5a4bb
[5.1.x] Refs #10941 -- Renamed query_string template tag to querystring.
...
Backport of 27043bde5b795eb4a605aeca1d3bc4345d2ca478 from main.
2024-07-15 13:29:54 -03:00
Natalia
d02ef75431
[5.1.x] Added CVE-2024-38875, CVE-2024-39329, CVE-2024-39330, and CVE-2024-39614 to security archive.
...
Backport of e095c7612d49dbe371e9c7edd76ba99b6bc4f9f6 from main.
2024-07-09 11:59:36 -03:00
Natalia
057a8898c7
[5.1.x] Added stub release notes for 5.0.8.
...
Backport of 9c356144d7d212017c85ec2cbf8f2dfca4cacdff from main.
2024-07-09 11:42:18 -03:00
Natalia
e396c43d17
[5.1.x] Made cosmetic edits to 5.0.7 release notes.
...
Backport of 1062bf730235ecc90f2087f1c2d346615377a006 from main.
2024-07-09 09:45:27 -03:00
Sarah Boyce
e99ccc4342
[5.1.x] Fixed CVE-2024-39614 -- Mitigated potential DoS in get_supported_language_variant().
...
Language codes are now parsed with a maximum length limit of 500 chars.
Thanks to MProgrammer for the report.
2024-07-09 09:42:58 -03:00
Natalia
6d36203648
[5.1.x] Fixed CVE-2024-39330 -- Added extra file name validation in Storage's save method.
...
Thanks to Josh Schneier for the report, and to Carlton Gibson and Sarah
Boyce for the reviews.
2024-07-09 09:42:45 -03:00
Michael Manfre
f5d16483f3
[5.1.x] Fixed CVE-2024-39329 -- Standarized timing of verify_password() when checking unusuable passwords.
...
Refs #20760 .
Thanks Michael Manfre for the fix and to Adam Johnson for the review.
2024-07-09 09:42:29 -03:00
Adam Johnson
44aef996c8
[5.1.x] Fixed CVE-2024-38875 -- Mitigated potential DoS in urlize and urlizetrunc template filters.
...
Thank you to Elias Myllymäki for the report.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-07-09 09:42:12 -03:00
Mark Gensler
2da007737c
[5.1.x] Fixed #35560 -- Made Model.full_clean() ignore GeneratedFields for constraints.
...
Accessing generated field values on unsaved models caused a crash when
validating CheckConstraints and UniqueConstraints with expressions.
Backport of 1005c2abd1ef0c156f449641e38c33e473989d37 from main.
2024-07-04 11:47:20 +02:00
Natalia
9f4725fa8f
[5.1.x] Added stub release notes and release date for 5.0.7 and 4.2.14.
...
Backport of 89557d4c66b469616fc3a16ba11b2999233efa8d from main.
2024-07-03 14:12:24 -03:00
samruddhiDharankar
fed3efda15
[5.1.x] Fixed #35473 -- Fixed CVE number in security archive.
...
Updated to CVE-2009-3695 from CVE-2009-3965.
Backport of 02dab94c7b8585c7ae3854465574d768e1df75d3 from main.
2024-06-14 14:00:31 +02:00
Natalia
de7fc2e42e
[5.1.x] Updated release date for Django 5.0.7.
...
Backport of adae619426b6f50046b3daaa744db52989c9d6db from main.
2024-05-31 10:55:17 -03:00
Natalia
59b649c7df
Made cosmetic edits to 5.1 release notes.
2024-05-22 11:29:45 -03:00
Natalia
8e68c50341
Removed empty sections from 5.1 release notes.
2024-05-22 11:29:45 -03:00
Hisham Mahmood
c7fc9f20b4
Fixed #31405 -- Added LoginRequiredMiddleware.
...
Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Mehmet İnce <mehmet@mehmetince.net>
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-05-22 08:51:17 +02:00
Marijke Luttekes
7857507c7f
Refs #35189 -- Removed no longer necessary JavaScript file collapse.js.
2024-05-22 00:13:55 -03:00
Marijke Luttekes
e4a693f50a
Fixed #35189 -- Improved admin collapsible fieldsets by using <details> elements.
...
This work improves the accessibility of the add and change pages in the
admin site by adding <details> and <summary> elements to the collapsible
fieldsets. This has the nice side effect of no longer requiring custom
JavaScript helpers to implement the fieldsets' show/hide capabilities.
Thanks to James Scholes for the accessibility advice, and to Sarah Boyce
and Tom Carrick for reviews.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-05-22 00:13:55 -03:00
John Parton
9c5fe93349
Fixed #35139 -- Prevented file read after ImageField is saved to storage.
2024-05-22 00:25:56 +02:00
Berker Peksag
4971a9afe5
Fixed #18119 -- Added a DomainNameValidator validator.
...
Thanks Claude Paroz for the review.
Co-authored-by: Nina Menezes <77671865+nmenezes0@users.noreply.github.com>
2024-05-21 23:11:12 +02:00
Adam Johnson
b9838c65ec
Fixed #35405 -- Converted get_cache_name into a cached property in FieldCacheMixin.
...
FieldCacheMixin is used by related fields to track their cached values.
This work migrates get_cache_name() to be a cached property to optimize
performance by reducing unnecessary function calls when working with
related fields, given that its value remains constant.
Co-authored-by: Simon Charette <charette.s@gmail.com>
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-05-21 16:19:29 -03:00
Mariusz Felisiak
480ccf9055
Refs #35326 -- Made cosmetic edits to 5.1 release notes.
2024-05-21 11:23:44 +02:00
Ben Cail
0b33a3abc2
Fixed #35326 -- Added allow_overwrite parameter to FileSystemStorage.
2024-05-21 07:28:12 +02:00
SaJH
8f205acea9
Fixed #35428 -- Increased parallelism of the ScryptPasswordHasher.
2024-05-17 17:13:58 +02:00
Jonny Park
c0b0ce85ed
Fixed #35384 -- Raised FieldError when saving a file without a name to FileField.
2024-05-15 12:02:45 +02:00
Mariusz Felisiak
f030236a86
Fixed #35275 -- Fixed Meta.constraints validation crash on UniqueConstraint with OpClass().
...
This also introduces Expression.constraint_validation_compatible that
allows specifying that expression should be ignored during a constraint
validation.
2024-05-14 10:34:30 +02:00
Natalia
b79ac89c57
Added stub release notes for 5.0.7.
2024-05-07 15:06:02 -03:00
Sarah Boyce
90175e110e
Added release notes for 5.0.6 and 4.2.13.
2024-05-07 17:21:21 +02:00
Sarah Boyce
34a503162f
Added release date for 5.0.5 and 4.2.12.
2024-05-06 14:35:57 +02:00
sobolevn
9a27c76021
Fixed #35426 -- Updated querysets to be a required argument of GenericPrefetch.
2024-05-04 11:30:36 +02:00
Natalia
e72049aa63
Refs #35422 -- Fixed typo in docs/releases/5.0.5.txt.
2024-05-03 13:07:11 -03:00
Mariusz Felisiak
91a4b9a8ec
Fixed #35422 -- Fixed migrations crash when altering GeneratedField referencing rename field.
...
Thanks Sarah Boyce for the report and Simon Charette for the
implementation idea.
2024-05-03 09:28:24 +02:00
DevilsAutumn
9aeb38c296
Fixed #35359 -- Fixed migration operations ordering when adding fields referenced by GeneratedField.expression.
...
Thank you to Simon Charette for the review.
2024-05-02 21:43:13 -03:00
Mariusz Felisiak
9d5c02446e
Refs #29280 -- Moved release note about transaction_mode to "Database backends" section.
2024-05-02 09:19:34 +02:00