Commit Graph

12432 Commits

Author SHA1 Message Date
Adam Johnson 9d656ea51d [4.1.x] Fixed CVE-2022-41323 -- Prevented locales being interpreted as regular expressions.
Thanks to Benjamin Balder Bach for the report.
2022-10-04 09:12:42 +02:00
Mariusz Felisiak 7843c43c49 [4.1.x] Refs #32987 -- Relaxed system check for template tag modules with the same name by turning into a warning.
Thanks Claude Paroz for the report.

Regression in 004b4620f6.
Backport of f71b0cf769 from main
2022-10-03 10:52:47 +02:00
Mariusz Felisiak 96c541ecef [4.1.x] Refs #34058 -- Fixed changing/deleting sequences when altering pre-Django 4.1 auto fields on PostgreSQL.
Thanks Anders Kaseorg for the report.

Follow up to 19e6efa50b.
Regression in 2eea361eff.

Backport of bc3b8f1524 from main
2022-10-01 07:59:28 +02:00
Mariusz Felisiak 7a1675806a [4.1.x] Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers."
This reverts 4f8c7fd9d9 and adds
two regression tests:
- test_related_manager_refresh(), and
- test_create_copy_with_m2m().

Thanks joeli for the report.
Backport of 5e0aa362d9 from main
2022-09-30 18:19:36 +02:00
Antoine Lorence ecf6506f44 [4.1.x] Fixed #34062 -- Updated View.http_method_not_allowed() to support async.
As with the options() methods, wrap the response in a coroutine if
the view is async.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>

Backport of 9b0c9821ed from main
2022-09-29 16:29:34 +02:00
Mariusz Felisiak 97353bc64b [4.1.x] Fixed #34058 -- Changed sequence types when altering pre-Django 4.1 auto fields on PostgreSQL.
Thanks Anders Kaseorg for the report.

Thanks Florian Apolloner for pair programming.

Regression in 2eea361eff.
Backport of 19e6efa50b from main
2022-09-29 13:20:55 +02:00
Adam Johnson b826b38847 [4.1.x] Refs #34010 -- Made --debug-mode work for parallel tests using spawn.
Bug in 3b3f38b3b0.

Thanks Kevin Renskers for the report.

Backport of 0f5b11eca0 from main
2022-09-28 20:40:23 +02:00
David Sanders 33d9247c8b [4.1.x] Fixed #34025 -- Fixed selecting ModelAdmin.autocomplete_fields after adding/changing related instances via popups.
Regression in c72f6f36c1.

Thanks Alexandre da Silva for the report.

Backport of 9976f3d4b8 from main
2022-09-28 12:54:48 +02:00
Alexander Kerkum 2d20386b41 [4.1.x] Fixed #34016 -- Fixed QuerySet.values()/values_list() crash on ArrayAgg() and JSONBAgg().
Regression in e06dc4571e.

Backport of f88fc72da4 from main
2022-09-18 07:39:47 +02:00
David Sanders be5e3b46f7 [4.1.x] Fixed #33996 -- Fixed CheckConstraint validation on NULL values.
Bug in 667105877e.

Thanks James Beith for the report.

Backport of e14d08cd89 from main
2022-09-13 14:06:46 +02:00
Simon Charette e0f14d8389 [4.1.x] Fixed #33992 -- Fixed queryset crash when aggregating over a group containing Exists.
A more in-depth solution is likely to make sure that we always GROUP BY
selected annotations or revisit how we use Query.exists() in the Exists
expression but that requires extra work that isn't suitable for a
backport.

Regression in e5a92d400a.

Thanks Fernando Flores Villaça for the report.

Backport of 32536b1324 from main
2022-09-08 08:13:15 +02:00
James Beith 7ba9a44831 [4.1.x] Fixed #33982 -- Fixed migrations crash when adding model with ExclusionConstraint.
Regression in 0e656c02fe.

Backport of 19e838daa8 from main
2022-09-07 09:17:23 +02:00
Mariusz Felisiak a1083805ac [4.1.x] Fixed #33955, Fixed #33971 -- Reverted "Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs."
This reverts commit 7f3cfaa12b.

Thanks Tom Carrick and Greg Kaleka for reports.
Backport of 974942a750 from main
2022-09-01 21:10:43 +02:00
Mariusz Felisiak 524ea6b77b [4.1.x] Refs #33953 -- Fixed test_rename_model_with_db_table_rename_m2m() crash on SQLite < 3.20.
Backport of a9e7beb959 from main
2022-08-29 10:08:26 +02:00
David Wobrock fca055315e [4.1.x] Fixed #33952 -- Reallowed creating reverse foreign key managers on unsaved instances.
Thanks Claude Paroz for the report.

Regression in 7ba6ebe914.

Backport of 806e9e2d0d from main
2022-08-27 15:36:13 +02:00
Iuri de Silvio 7d5ccbbe1a [4.1.x] Fixed #33953 -- Reverted "Fixed #33201 -- Made RenameModel operation a noop for models with db_table."
Regression in afeafd6036.
This reverts afeafd6036.

Thanks Timothy Thomas for the report.

Backport of 166a3b3263 from main
2022-08-26 07:14:54 +02:00
Simon Charette c9ebd5b7aa [4.1.x] Fixed #33938 -- Fixed migration crash for m2m with a through model in another app.
Regression in aa4acc164d.

Thanks bryangeplant for the report.

Backport of 71902e0d9f from main
2022-08-25 10:32:48 +02:00
Benoît Vinot 85942cf669 [4.1.x] Fixed #33932 -- Fixed altering AutoFields to OneToOneField on PostgreSQL.
Regression in 2eea361eff.

Backport of e3cb8bcb7d from main
2022-08-17 17:43:48 +02:00
Mariusz Felisiak 3848475eeb [4.1.x] Fixed #33919 -- Fixed adding AutoFields on PostgreSQL.
Thanks Jack Calvin Brown for the report.

Regression in 2eea361eff.
Backport of 5c803bc070 from main
2022-08-12 17:31:15 +02:00
David Sanders e215948f0d [4.1.x] Fixed #33905 -- Fixed CheckConstraint() validation on range fields.
Bug in 667105877e.

Backport of e0ae1363ec from main
2022-08-09 21:45:58 +02:00
Mariusz Felisiak 6b0193146d [4.1.x] Fixed #33902 -- Fixed Meta.constraints validation crash with F() expressions.
Thanks Adam Zahradník for the report.

Bug in 667105877e.
Backport of 63884829ac from main
2022-08-09 06:09:56 +02:00
Fiza Ashraf f546e7c18b [4.1.x] Fixed #33899 -- Fixed migration crash when removing indexed field on SQLite 3.35.5+.
Regression in 702819227fd0cdd9b581cd99e11d1561d51cbeb.

Thanks cessor for the report.

Backport of c0beff2123 from main
2022-08-08 07:26:46 +02:00
Mariusz Felisiak d9ace347b4 [4.1.x] Fixed #33898 -- Fixed Window() expression crash with ArrayAgg().
Thanks Kia for the report.

Regression in e06dc4571e.
Backport of fd93db97c7 from main
2022-08-06 18:00:38 +02:00
Fab 82e9e19ebe [4.1.x] Fixed #33893 -- Reverted "Fixed #28889 -- Prevented double submission of admin forms."
Regression in fe7dbef586.

Backport of 0756c61f2a from main
2022-08-05 17:21:38 +02:00
Carlton Gibson 7b0ed458d9 [4.1.x] Refs #33173, Refs #33755 -- Fixed ResourceWarning from unclosed files in ASGI tests.
Backport of f476c8847a from main
2022-08-04 10:14:58 +02:00
Claude Paroz 2ae024c744 [4.1.x] Fixed #33888 -- Fixed get_select2_language() crash with no language activated.
Regression in 3079133c73.

Backport of 0638b4e23d from main
2022-08-03 20:25:10 +02:00
Alberto Planas 9e9bdf8dbd [4.1.x] Fixed #33887 -- Fixed test_fails_squash_migration_manual_porting() on final tags.
Regression in 7c318a8bdd.
Backport of 4e13b40a76 from main
2022-08-03 16:36:48 +02:00
Carlton Gibson 46916665f9 [4.1.x] Fixed CVE-2022-36359 -- Escaped filename in Content-Disposition header.
Thanks to Motoyasu Saburi for the report.
2022-08-03 08:47:19 +02:00
Mariusz Felisiak a3bab93324 [4.1.x] Updated translations from Transifex.
This also fixes related i18n tests.

Co-authored-by: Claude Paroz <claude@2xlibre.net>
2022-08-03 08:02:48 +02:00
Carlton Gibson 8aab03ab55 [4.1.x] Fixed #33876, Refs #32229 -- Made management forms render with div.html template.
Thanks to Claude Paroz for the report.

Backport of 89e695a69b from main
2022-08-02 10:31:04 +02:00
Mariusz Felisiak d3f5782a33 [4.1.x] Fixed warnings per flake8 5.0.0.
Backport of c18861804f from main
2022-07-31 10:28:17 +02:00
Mariusz Felisiak 710af68dee [4.1.x] Fixed #33855 -- Removed unnecessary system check calls from test worker initialization.
Regression in 3b3f38b3b0.
Backport of 24effbceb8 from main
2022-07-19 09:45:39 +02:00
Stéphane "Twidi" Angel a3d35af26a [4.1.x] Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle violation_error_message.
Regression in 667105877e.

Backport of ccbf714ebe from main
2022-07-08 08:57:21 +02:00
Simon Charette 585ed2f6d7 [4.1.x] Refs CVE-2022-34265 -- Properly escaped Extract() and Trunc() parameters.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 877c800f25 from main
2022-07-06 09:10:41 +02:00
Mariusz Felisiak 14057603c7 [4.1.x] Fixed RelatedGeoModelTest.test08_defer_only() on MySQL 8+ with MyISAM storage engine.
Backport of 73766c1187 from main
2022-07-05 19:06:03 +02:00
Shawn Dong 675d2239ce [4.1.x] Fixed #33822 -- Fixed save() crash on model formsets when not created by modelformset_factory().
Thanks Claude Paroz for the report.

Regression in e87f57fdb8.

Backport of 18c5ba07cc from main
2022-07-05 08:18:09 +02:00
Mariusz Felisiak 284b188a41 [4.1.x] Fixed CVE-2022-34265 -- Protected Trunc(kind)/Extract(lookup_name) against SQL injection.
Thanks Takuto Yoshikai (Aeye Security Lab) for the report.
2022-07-04 08:26:02 +02:00
Mariusz Felisiak 1757eda3a8 [4.1.x] Fixed GEOSTest.test_emptyCollections() on GEOS 3.8.0.
It's a regression in GEOS 3.8.0 fixed in GEOS 3.8.1.
Backport of 863aa7541d from main
2022-07-01 19:06:14 +02:00
Mariusz Felisiak d38cd2677e [4.1.x] Fixed #33796 -- Fixed ordered combined queryset crash when used in subquery on PostgreSQL and MySQL.
Thanks Shai Berger for the report.

Regression in 30a0144134.

Backport of 44ffd8d06f from main
2022-06-27 06:22:37 +02:00
Mariusz Felisiak b37a4affcd [4.1.x] Fixed #33800 -- Fixed system check for the same template tag module in installed apps and template tag libraries.
Thanks Claude Paroz for the report.

Regression in 004b4620f6.
Backport of 083bfca6b6 from main
2022-06-23 20:24:24 +02:00
DhruvaPatil98 531c96de34 [4.1.x] Fixed #33799, Refs #31685 -- Added parameters for updating conflicts to QuerySeta.abulk_create().
Backport of c627226d05 from main
2022-06-23 12:16:41 +02:00
Claude Paroz 42e4b0e608 [4.1.x] Fixed #33794 -- Fixed string-casting of GIS queries on PostgreSQL.
Regression in 64c3f049ea.

Backport of de74a74b4b from main
2022-06-21 10:32:34 +02:00
Abhinav Yadav 99e5ce96c6 [4.1.x] Fixed #33657 -- Allowed customizing formatter class of argument parsers.
Backport of 2887b9f67c from main
2022-06-20 17:35:35 +02:00
Zainab Amir f741dd5fab [4.1.x] Fixed #23689 -- Made parsing HTTP Accept-Language header case-insensitive.
Thank you Daniel Samuels for test project.

Backport of 901a169198 from main
2022-06-20 08:41:17 +02:00
David Wobrock d44dc31fcb [4.1.x] Fixed #28897 -- Fixed QuerySet.update() on querysets ordered by annotations.
Backport of 3ef37a5245 from main
2022-06-17 11:13:05 +02:00
David Wobrock ccb243847e [4.1.x] Refs #28897 -- Added test for QuerySet.update() on querysets ordered by inline m2m annotation.
Backport of f4680a112d from main
2022-06-17 11:12:59 +02:00
Carlton Gibson 0fb02522f9 [4.1.x] Updated asgiref dependency for 4.1 release series.
Backport of 2a2bde52f3 from main
2022-06-16 12:17:15 +02:00
Bruce Cutler a7f398ae59 [4.1.x] Fixed #33773 -- Made Index with multiple fields respect DEFAULT_INDEX_TABLESPACE.
Thanks to Simon Charette for locating where issue lay.

Backport of de1c8320ce from main
2022-06-13 08:49:35 +02:00
David Wobrock 9fce76a237 [4.1.x] Fixed #31788 -- Fixed migration optimization after altering field to ManyToManyField.
This makes AddField() used for altering to ManyToManyField, dependent
on the prior RemoveField.
Backport of 798b6c23ee from main
2022-06-02 12:11:06 +02:00
Mehrdad 2f974e3c1e [4.1.x] Refs #33697 -- Fixed multipart parsing of headers with double quotes and semicolons.
See 1ef0c0349e

Backport of 93cedc82f2 from main
2022-06-01 10:38:59 +02:00