Commit graph

34002 commits

Author SHA1 Message Date
Natalia
36b5f39d93 [6.0.x] Bumped version for 6.0 release. 2025-12-03 13:20:45 -03:00
Natalia
4f46d1f433 [6.0.x] Updated man page for Django 6.0. 2025-12-03 13:16:52 -03:00
Jacob Walls
a9f5ca5c58 [6.0.x] Refs #35859 -- Clarified Tasks ref and topics docs regarding available backends.
Backport of d3f142f2cd from main.
2025-12-03 13:09:57 -03:00
Natalia
45f9e0e969 [6.0.x] Finalized release notes for Django 6.0.
Backport of ea4920174e from main.
2025-12-03 12:48:43 -03:00
Adam Johnson
ac44a55c80 [6.0.x] Made cosmetic edits to docs/releases/6.0.txt.
Backport of fe42aa6100 from main.
2025-12-03 12:48:34 -03:00
Natalia
00575b7931 [6.0.x] Updated translations from Transifex. 2025-12-02 17:37:44 -03:00
Mariusz Felisiak
8414487569
[6.0.x] Refs #35444 -- Fixed typo in PostgreSQL StringAgg deprecation warning. 2025-12-02 19:08:41 +01:00
Natalia
1f8f36ee79 [6.0.x] Added CVE-2025-13372 and CVE-2025-64460 to security archive.
Backport of d0d596042e from main.
2025-12-02 11:31:34 -03:00
Natalia
224fc79c02 [6.0.x] Added stub release notes for 5.2.10.
Backport of 8d4ec9949a from main.
2025-12-02 11:31:34 -03:00
Shai Berger
1dbd07a608 [6.0.x] Fixed CVE-2025-64460 -- Corrected quadratic inner text accumulation in XML serializer.
Previously, `getInnerText()` recursively used `list.extend()` on strings,
which added each character from child nodes as a separate list element.
On deeply nested XML content, this caused the overall deserialization
work to grow quadratically with input size, potentially allowing
disproportionate CPU consumption for crafted XML.

The fix separates collection of inner texts from joining them, so that
each subtree is joined only once, reducing the complexity to linear in
the size of the input. These changes also include a mitigation for a
xml.dom.minidom performance issue.

Thanks Seokchan Yoon (https://ch4n3.kr/) for report.

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of 50efb718b3 from main.
2025-12-02 09:24:55 -03:00
Jacob Walls
56aea00c3c [6.0.x] Fixed CVE-2025-13372 -- Protected FilteredRelation against SQL injection in column aliases on PostgreSQL.
Follow-up to CVE-2025-57833.

Thanks Stackered for the report, and Simon Charette and Mariusz Felisiak
for the reviews.

Backport of 5b90ca1e75 from main.
2025-12-02 09:24:32 -03:00
Νικόλαος-Διγενής Καραγιάννης
c95abc581e [6.0.x] Refs #35444 -- Fixed typo in PostgreSQL StringAgg deprecation warning.
Backport of cb1d2854ed from main
2025-12-02 11:50:03 +01:00
Jacob Walls
ec7327453d [6.0.x] Fixed #36712 -- Evaluated type annotations lazily in template tag registration.
Ideally, this will be reverted when an upstream solution is available for
https://github.com/python/cpython/issues/141560.

Thanks Patrick Rauscher for the report and Augusto Pontes for the
first iteration and test.

Backport of 34186e731c from main.
2025-12-01 20:49:53 -05:00
Jacob Walls
2e3953f0a2 [6.0.x] Refs #36743 -- Corrected docstring for DisallowedRedirect.
Backport of ce36c35e76 from main.
2025-12-01 16:34:02 -03:00
Jacob Walls
4768197d8a [6.0.x] Closed temporary files in OverwritingStorageTests.test_save_overwrite_behavior_temp_file().
Backport of a08f1693f3 from main.
2025-12-01 08:48:22 -05:00
Jacob Walls
cf4e036bde [6.0.x] Refs #35535 -- Used intended decorator in test_simple_block_tag_parens().
Backport of e94b19f6ab from main.
2025-12-01 08:39:10 -05:00
Rida Zouga
9cfdab2e8d [6.0.x] Added link to Python Pickle documentation in docs/topics/cache.txt.
Co-authored-by: Rida Zouga <ridazouga@gmail.com>
Backport of 3ea0195ca5 from main
2025-11-30 08:30:30 +01:00
Bruno Alla
d17e646fe5 [6.0.x] Fixed outdated redis-py link in cache docs.
Backport of 7b32485ee9 from main
2025-11-27 17:12:41 +01:00
Tim Schilling
cf2d05ba1e [6.0.x] Highlighted community package upgrade utilities in docs/howto/upgrade-version.txt.
Backport of bd7940982d from main.
2025-11-27 09:32:47 -03:00
Natalia
4b8563e9f6 [6.0.x] Included usage of new scripts in docs/internals/howto-release-django.txt.
Backport of 60b08ad5e1 from main.
2025-11-26 20:06:48 -03:00
Natalia
9f07cfb88c [6.0.x] Added script to archive EOL stable branches.
This also fixed a small bash issue in `confirm_release.sh` script.

Backport of 532c1058a7 from main.
2025-11-26 20:06:31 -03:00
Natalia
1f349005f8 [6.0.x] Refs #36743 -- Added missing release notes for 5.1.15 and 4.2.27.
The fix landed in a8cf8c292c will be
backported to 5.1 and 4.2 since the 2048 limit was rolled out as part of
the security release for CVE-2025-64458.

Backport of 18b13cf6c4 from main.
2025-11-26 20:00:26 -03:00
varunkasyap
ce7d65fc81 [6.0.x] Fixed #36743 -- Increased URL max length enforced in HttpResponseRedirectBase.
Refs CVE-2025-64458.

The previous limit of 2048 characters reused the URLValidator constant
and proved too restrictive for legitimate redirects to some third-party
services. This change introduces a separate `MAX_URL_REDIRECT_LENGTH`
constant (defaulting to 16384) and uses it in HttpResponseRedirectBase.

Thanks Jacob Walls for report and review.

Backport of a8cf8c292c from main.
2025-11-26 17:19:18 -03:00
Cha Hwa Young
122b2dc569 [6.0.x] Fixed #31506 -- Clarified that ExpressionWrapper does not perform database casts.
Added warning in DateField documentation about type differences when using
timedelta on PostgreSQL and MySQL. Mentioned Cast() and integer arithmetic
solutions.

Backport of 55af4749b9 from main.
2025-11-26 08:34:35 -05:00
Natalia
0868b7151a [6.0.x] Added timeout-minutes directive to all GitHub Actions workflows.
GitHub Actions defaults to a 360-minute (6-hour) timeout. We've had jobs
hang due to issues in the parallel test runner, causing them to run for
the full 6 hours. This wastes resources and negatively impacts CI
availability, so explicit timeouts have been added to prevent
long-running hangs.

Backport of e48527f91d from main.
2025-11-26 08:01:52 -05:00
Natalia
938de87854 [6.0.x] Added stub release notes and release date for 5.2.9, 5.1.15, and 4.2.27.
Backport of d62e811acf from main.
2025-11-25 15:14:15 -03:00
Jake Howard
e0f3e3ec94 [6.0.x] Corrected assertions for True/False results in tests/auth_tests/test_handlers.py.
Backport of d08ae991a8 from main.
2025-11-24 16:40:23 -03:00
Simon Charette
abce629946 [6.0.x] Fixed #36751 -- Fixed empty filtered aggregation crash over annotated queryset.
Regression in b8e5a8a9a2.

Refs #36404.

The replace_expressions method was innapropriately dealing with falsey
but not None source expressions causing them to also be potentially
evaluated when __bool__ was invoked (e.g. QuerySet.__bool__ evaluates
the queryset).

The changes introduced in b8e5a8a9a2, which were to deal with a similar
issue, surfaced the problem as aggregation over an annotated queryset
requires an inlining (or pushdown) of aggregate references which is
achieved through replace_expressions.

In cases where an empty Q object was provided as an aggregate filter,
such as when the admin facetting feature was used as reported, it would
wrongly be turned into None, instead of an empty WhereNode, causing a
crash at aggregate filter compilation.

Note that the crash signature differed depending on whether or not the
backend natively supports aggregate filtering
(supports_aggregate_filter_clause) as the fallback, which makes use
Case / When expressions, would result in a TypeError instead of a
NoneType AttributeError.

Thanks Rafael Urben for the report, Antoliny and Youngkwang Yang for
the triage.
Backport of 2a6e0bd72d from main
2025-11-24 12:15:08 +01:00
Jacob Walls
a9367c262f [6.0.x] Configured dangerous-triggers zizmor rule.
Backport of 846613e521 from main.
2025-11-21 14:37:40 -05:00
Jacob Walls
3a493d4545 [6.0.x] Addressed unpinned-uses zizmor finding.
Backport of 86b8058b40 from main.
2025-11-21 14:37:33 -05:00
Jacob Walls
bc33e240e1 [6.0.x] Simplified actions after applying zizmor auto-fixes.
Backport of 08f4901b3f from main.
2025-11-21 14:37:28 -05:00
Jacob Walls
e22a9332e3 [6.0.x] Applied auto-fixes from zizmor findings.
Backport of e8958c4690 from main.
2025-11-21 14:37:24 -05:00
Jacob Walls
abb9aab00e [6.0.x] Added GitHub Actions linter (zizmor).
At the direction of the Security Team. Thanks Markus Holtermann,
Jake Howard, and Natalia Bidart for reviews.

Backport of 09d4bf5cd9 from main.
2025-11-21 14:37:19 -05:00
Natalia
aa8cbe051d [6.0.x] Added scripts for building and releasing Django artifacts.
Backport of a523d5c833 from main.
2025-11-21 15:37:36 -03:00
Natalia
ab8ba62dbb [6.0.x] Skipped scripts/ folder from built release artifacts.
Backport of 971c76f735 from main.
2025-11-21 15:37:36 -03:00
Jacob Walls
2f77776f00 [6.0.x] Added missing ticket links in docs/releases/5.2.8.txt.
Backport of 8ce3e1f9d0 from main.
2025-11-20 17:32:01 -05:00
Chris Wesseling
161e543485 [6.0.x] Fixed #36748 -- Filtered non-standard placeholders from UNNEST queries.
Backport of 5834643f43 from main.
2025-11-20 17:23:30 -05:00
nessita
b72ee77f6b [6.0.x] Ensured that Sitemap.items is described as a method in docs/ref/contrib/sitemaps.txt.
Backport of ee2e0e2028 from main.
2025-11-20 15:44:33 -03:00
Natalia
4413e15380 [6.0.x] Bumped version for 6.0 release candidate 1 release. 2025-11-19 11:47:00 -03:00
varunkasyap
ef4715ef69 [6.0.x] Fixed #36733 -- Escaped attributes in Stylesheet.__str__().
Thanks Mustafa Barakat for the report, Baptiste Mispelon for
the triage, and Jake Howard for the review.

Backport of e05f2a7569 from main.
2025-11-18 17:16:27 -05:00
Georgi Yanchev
569f455b58 [6.0.x] Fixed #36141 -- Checked for applied replaced migrations recursively.
Regression in 64b1ac7292.
Backport of b07298a73a from main.
2025-11-18 08:11:36 -05:00
Annabelle Wiegart
1e8d6a2e1d [6.0.x] Fixed #26379 -- Doc'd that the first filter() on a many-to-many relation is sticky.
Backport of 3c005b5f79 from main.
2025-11-17 15:15:41 -05:00
Kasyap Pentamaraju
37b5dced86 [6.0.x] Fixed #36686 -- Clarified Meta.ordering is ignored in GROUP BY queries.
Backport of 7e765a6859 from main.
2025-11-13 11:19:05 -05:00
Adam Johnson
5ae8659cb5 [6.0.x] Fixed #36730 -- Fixed constraint validation crash for excluded FK attnames.
Regression in e44e8327d3.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of abfa4619fb from main
2025-11-13 10:04:40 +01:00
Clifford Gama
d6af15d44d [6.0.x] Fixed typo in docs/ref/databases.txt.
Backport of 2b0f24e622 from main.
2025-11-10 18:00:19 -03:00
Jacob Walls
a26b660cff Refs #36680 -- Avoided manipulating PATH in AdminScriptTestCase.
This mostly reverts 6436ec3210,
which was fragile. Instead, if black is present, we use it to format the
expected and actual results, instead of hard-coding the expected
formatted value.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-11-10 14:14:22 -05:00
Markus Holtermann
edacefdf2a [6.0.x] Fixed unsafe variable interpolation in GitHub Action workflow.
Thank you Davide Netti for the report and initial patch.

Co-authored-by: Davide Netti <davide.netti4@gmail.com>

Backport of 01c70ba148 from main.
2025-11-10 15:52:44 -03:00
Clifford Gama
37ab85dd8d [6.0.x] Clarified "get_db_prep_value" default result in docs/ref/models/fields.txt.
Backport of c135be349d from main.
2025-11-10 14:12:06 -03:00
Hong Xu
cdae630530 [6.0.x] Clarified EmailValidator docs to specify it validates an email address.
Updated the EmailValidator docs in docs/ref/validators.txt to explicitly
state that it validates an email address, to avoid confusion with
validating email message content.

Backport of a4f7674134 from main.
2025-11-10 12:52:53 -03:00
Tim Schilling
fb2fb2de4d [6.0.x] Removed community packages admonition from settings docs.
Backport of 5ef870fbc5 from main.
2025-11-06 15:52:36 -05:00