Mariusz Felisiak
b7d4a6fa65
[3.1.x] Fixed #32718 -- Relaxed file name validation in FileField.
...
- Validate filename returned by FileField.upload_to() not a filename
passed to the FileField.generate_filename() (upload_to() may
completely ignored passed filename).
- Allow relative paths (without dot segments) in the generated filename.
Thanks to Jakub Kleň for the report and review.
Thanks to all folks for checking this patch on existing projects.
Thanks Florian Apolloner and Markus Holtermann for the discussion and
implementation idea.
Regression in 0b79eb36915d178aef5c6a7bbce71b1e76d376d3.
Backport of b55699968fc9ee985384c64e37f6cc74a0a23683 from main.
2021-05-13 08:56:06 +02:00
Mariusz Felisiak
9fb9944d1c
[3.1.x] Refs #32718 -- Corrected CVE-2021-31542 release notes.
...
Backport of d1f1417caed648db2f81a1ec28c47bf958c01958 from main.
2021-05-12 10:43:12 +02:00
Mariusz Felisiak
0688874504
[3.1.x] Added CVE-2021-32052 to security archive.
...
Backport of efebcc429f048493d6bc710399e65d98081eafd5 from main
2021-05-06 10:04:52 +02:00
Mariusz Felisiak
afb23f5929
[3.1.x] Fixed #32713 , Fixed CVE-2021-32052 -- Prevented newlines and tabs from being accepted in URLValidator on Python 3.9.5+.
...
In Python 3.9.5+ urllib.parse() automatically removes ASCII newlines
and tabs from URLs [1, 2]. Unfortunately it created an issue in
the URLValidator. URLValidator uses urllib.urlsplit() and
urllib.urlunsplit() for creating a URL variant with Punycode which no
longer contains newlines and tabs in Python 3.9.5+. As a consequence,
the regular expression matched the URL (without unsafe characters) and
the source value (with unsafe characters) was considered valid.
[1] https://bugs.python.org/issue43882 and
[2] 76cd81d603
Backport of e1e81aa1c4427411e3c68facdd761229ffea6f6f from main.
2021-05-06 08:50:52 +02:00
Carlton Gibson
48b39a8e99
[3.1.x] Added CVE-2021-31542 to security archive.
...
Backport of 607ebbfba915de2d84eb943aa93654f31817a709 and
62b2e8b37e37a313c63be40e3223ca4e830ebde3 from main
2021-05-04 11:13:11 +02:00
Florian Apolloner
25d84d6412
[3.1.x] Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads.
2021-04-27 19:12:15 +02:00
Mariusz Felisiak
6b0c7e6f50
[3.1.x] Added CVE-2021-28658 to security archive.
...
Backport of 1eac8468cbde790fecb51dd055a439f4947d01e9 from main
2021-04-06 09:46:21 +02:00
Mariusz Felisiak
cca0d98118
[3.1.x] Fixed CVE-2021-28658 -- Fixed potential directory-traversal via uploaded files.
...
Thanks Claude Paroz for the initial patch.
Thanks Dennis Brinkrolf for the report.
Backport of d4d800ca1addc4141e03c5440a849bb64d1582cd from main.
2021-04-06 08:25:24 +02:00
tim-mccurrach
6eb01cb052
[3.1.x] Fixed #32576 -- Corrected dumpdata docs for passing model names to the --exclude option.
...
Backport of cf2f6fc558166656f29609e3864df9af81067d0c from main
2021-03-22 08:45:20 +01:00
Mariusz Felisiak
11d241dcf7
[3.1.x] Refs #25735 -- Added tags/exclude_tags arguments to DiscoverRunner docs.
...
Backport of 37044817f9a57126d655f216019e8c8cca7c151b from main.
2021-03-19 08:11:22 +01:00
Mariusz Felisiak
4a10c312c7
[3.1.x] Added parallel argument to DiscoverRunner docs.
...
Follow up to cd9fcd4e8073490a52c9e79133ada4661cb7db38.
Backport of f099ef3ef53f88160d04d7dcc73859801b05a83e from main.
2021-03-19 08:09:46 +01:00
Mariusz Felisiak
c528c71007
[3.1.x] Corrected DiscoverRunner.build_suite() signature.
...
Follow up to 9012833af857e081b515ce760685b157638efcef.
Backport of fc6fba0aa9e4575c9a1c23ad7031eebb1c112868 from main
2021-03-19 08:08:07 +01:00
Adam Johnson
95ee8fecb5
[3.1.x] Fixed #32560 -- Fixed test runner with --pdb and --buffer on fail/error.
...
Backport of 45814af6197cfd8f4dc72ee43b90ecde305a1d5a from main
2021-03-17 21:51:51 +01:00
Jozef
b58b214856
[3.1.x] Fixed typo in docs/topics/testing/advanced.txt.
...
Backport of 6993e1bf6dff04b6e3ab284b154397b341463b50 from main
2021-03-17 18:50:24 +01:00
Hasan Ramezani
0415ac5af9
[3.1.x] Fixed #32536 -- Added links to BaseDetailView/BaseListView.get() methods in CBV docs.
...
Backport of bc04941bf811d1ea2c79fb7fc20457ed2c7e3410 from main
2021-03-16 08:04:28 +01:00
Hasan Ramezani
7c662b75f6
[3.1.x] Fixed typo in docs/ref/checks.txt.
...
Backport of 50ef9dfac21499ff6c46c2f6a33103e40b60cd4e from main
2021-03-15 09:42:47 +01:00
Mariusz Felisiak
069c338b5e
[3.1.x] Updated datum directory for PROJ 6 in GIS install instructions.
...
Backport of 4d912e6697784325bc43a6d852fe5a26e6fa235a from main
2021-03-15 08:21:32 +01:00
Mariusz Felisiak
5ab1b7bc26
[3.1.x] Refs #32483 -- Doc'd caveat about using JSONField key transforms to booleans with QuerySet.values()/values_list() on SQLite.
...
Backport of c6b07627fcb5d1c8d2082714ef5adb63bee6cf4c from master
2021-03-04 11:31:22 +01:00
Mariusz Felisiak
72e2cbe38f
[3.1.x] Fixed typo in docs/ref/contrib/postgres/fields.txt.
...
Backport of 05bbff82638731a6abfed2fe0ae06a4d429cb32f from master
2021-03-04 10:44:40 +01:00
Hasan Ramezani
05066ad961
[3.1.x] Corrected admin.E023 message in docs.
...
Backport of d1f89c9b9a9b44c4dbfd24fcb5f76f16e973c0a2 from master
2021-03-04 09:22:01 +01:00
Mariusz Felisiak
350c69113a
[3.1.x] Updated links to djangoproject.com/code.djangoproject.com repositories.
...
Backport of 2b1de3dd242b473cd084e7ff9b9b10d488dcabad from master
2021-03-03 09:07:33 +01:00
Jacob Walls
200b71b593
[3.1.x] Fixed typos in assertQuerysetEqual() docs and 1.6 release notes.
...
Backport of 0c7e880e13b837dd76276c04ebdc338bb76d1379 from master
2021-02-26 09:12:22 +01:00
Mariusz Felisiak
bdad3eb7ec
[3.1.x] Added stub release notes for 3.1.8.
...
Backport of e0f82d7992ad7085dcf4ed096a6ad2e3ad89eaae from master
2021-02-25 20:30:29 +01:00
Markus Holtermann
7fffdc4aad
[3.1.x] Updated links to DEPs.
...
Backport of 7cc6899d4176539e5d59a2e921b938904d3a8944 from master
2021-02-25 17:27:54 +01:00
Carlton Gibson
3668da8de8
[3.1.x] Added CVE-2021-23336 to security archive.
...
Backport of ab58f072502e86dfe21b2bd5cccdc5e94dce8d26 from master
2021-02-19 11:05:36 +01:00
Nick Pope
8f6d431b08
[3.1.x] Fixed CVE-2021-23336 -- Fixed web cache poisoning via django.utils.http.limited_parse_qsl().
2021-02-18 10:15:30 +01:00
Nick Pope
536d1174bb
[3.1.x] Added documentation extlink for bugs.python.org.
...
Backport of d02d60eb0f032c9395199fb73c6cd29ee9bb2646 from master
2021-02-17 14:26:48 +01:00
David Smith
921ffcbb03
[3.1.x] Fixed #32438 -- Fixed typo in docs/topics/testing/tools.txt.
...
Backport of e412b288455dd3ea6f1d65c8ec5d01751e489976 from master
2021-02-12 09:21:42 +01:00
Anil Khatri
b1416cbc8b
[3.1.x] Fixed #32430 -- Doc'd base class-based views.
...
Backport of 6ee86a12ee29fcd4f3d7c9f1ad6de8cde4637b06 from master
2021-02-08 17:34:24 +01:00
Anil Khatri
4f5e550cda
[3.1.x] Fixed #32408 -- Doc'd django.views.generic.detail.BaseDetailView.
...
Backport of de4492fbb1e48f8b258baa182220d4247f345177 from master
2021-02-08 07:09:09 +01:00
Carlton Gibson
30b771766b
[3.1.x] Corrected typo in advice to new contributors.
...
Backport of e48e78738e224a056df57b7cb08bd48ac0e54f60 from master
2021-02-04 16:03:26 +01:00
GabbyPrecious
526a6f0d25
[3.1.x] Refs #32412 -- Adjusted link from tutorial to reference docs.
...
The writing code index page is a better location for a newer contributor to
land, than the specific patch guidelines subpage.
Backport of aa29c57beea7e8e570f8a597ea806ca3e2b3431d from master
2021-02-04 10:39:22 +01:00
GabbyPrecious
fdeca77215
[3.1.x] Refs #32412 -- Adjusted beginning of Advice for new contributors.
...
With the goal of guiding folks to the right destination:
* Improved wording of tutorial call-out.
* Added summary of page purpose.
* Added link to Writing code reference doc.
Backport of e733c9ac1746cedc78efabff340379f1c9ee47da from master
2021-02-04 10:39:18 +01:00
Mariusz Felisiak
9efe832ee1
[3.1.x] Fixed #32403 -- Fixed re-raising DatabaseErrors when using only 'postgres' database.
...
Thanks Kazantcev Andrey for the report.
Regression in f48f671223a20b161ca819cf7d6298e43b8ba5fe.
Backport of f131841c601b9d4884adcdb284b4213c2ad89231 from master
2021-02-02 21:36:06 +01:00
Brad Solomon
2d560af8fb
[3.1.x] Fixed typo in docs/ref/forms/widgets.txt.
...
Backport of f9cfd346f0222d86bfbac26ef5455806965bae6b from master
2021-02-01 12:05:49 +01:00
Mariusz Felisiak
65d4c59da9
[3.1.x] Added stub release notes for 3.1.7.
...
Backport of 8d3c3a57174a072479978d60f5ecdb9fd3c2fd23 from master
2021-02-01 10:55:28 +01:00
Mariusz Felisiak
a930e77a83
[3.1.x] Added CVE-2021-3281 to security archive.
...
Backport of f749148d62ece28d208ab66b109f858215ba090a from master
2021-02-01 10:46:17 +01:00
Mariusz Felisiak
02e6592835
[3.1.x] Fixed CVE-2021-3281 -- Fixed potential directory-traversal via archive.extract().
...
Thanks Florian Apolloner, Shai Berger, and Simon Charette for reviews.
Thanks Wang Baohua for the report.
Backport of 05413afa8c18cdb978fcdf470e09f7a12b234a23 from master.
2021-02-01 09:13:58 +01:00
Adam Johnson
a271d8c15c
[3.1.x] Modernized custom manager example
...
Since this example was added 15 years ago in a8ccdd0fcd631e8e928ef20547e1fe3e313dc607, the ORM has gained the ability to do the `COUNT(*)` related query, so do it with the ORM to avoid misleading users that raw SQL is only supported from manager methods.
Backport of 59e503b6708d41a44f2aa320272de3e2ecb5d65c from master
2021-01-28 16:02:15 +01:00
Denis Skulimovskiy
82e1294602
[3.1.x] Fixed #32391 -- Used CSS flex properties for changelist filter.
...
Matched layout adjustment using flex from admin sidebar added in
d24ba1be7a53a113d19e2860c03aff9922efec24.
Filters would become squashed when viewport was
constrained or list display table became too wide.
Backport of 269a76714616fd7ad166a14113f3354bab8d9b65 from master
2021-01-28 15:55:51 +01:00
Timothy McCurrach
b920945d02
[3.1.x] Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about duplicates for multiple batches.
...
Backport of 241da3f06ee0c6f436341cda5890b221ac453e3b from master
2021-01-28 08:07:33 +01:00
Carlton Gibson
fa203f1759
[3.1.x] Fixed #32348 , Refs #29087 -- Corrected tutorial for updated deleting inlines UI.
...
Updated tutorial to match change in 24e540fbd71bd2b0843e751bde61ad0052a811b3
allowing deletion of original extra inlines.
Backport of f4272d000af598018247fe9687dac0fd02a29a7c from master
2021-01-27 08:48:14 +01:00
Jack
18adc89e50
[3.1.x] Refs #32372 -- Updated manager name in related objects reference docs.
...
Follow up to 725c549ae7a34d83447201da7190f8d71c7fc2fc.
Backport of 2b4b6c8af0aae8785bc1347cf1be2e8e70fd5ff3 from master
2021-01-22 20:20:04 +01:00
Jack Aitken
cc5ee23f74
[3.1.x] Fixed #32372 -- Made examples in related objects reference docs consistent.
...
Backport of 725c549ae7a34d83447201da7190f8d71c7fc2fc from master
2021-01-22 06:53:34 +01:00
Matthias Kestenholz
2a74248eca
[3.1.x] Fixed #32371 -- Doc'd jquery.init.js dependency for admin widgets.
...
Backport of 7b3ec6bcc8309d5b2003d355fe6f78af89cfeb52 from master
2021-01-20 22:08:31 +01:00
Carles Pina Estany
ed616ffe94
[3.1.x] Fixed cross-link in CBV topic documentation.
...
Backport of 7072bff1fd13ea706b2dc0ca10feef755872eb68 from master
2021-01-14 11:19:29 +01:00
Mariusz Felisiak
fdbcbc3081
[3.1.x] Removed unused import in docs/ref/models/expressions.txt.
...
Backport of fdc3d9dcaf87fb0a1350154561053faa331c3b69 from master
2021-01-12 10:54:03 +01:00
Iuri de Silvio
1dd159f16e
[3.1.x] Fixed #32313 -- Corrected QuerySet.in_bulk() signature.
...
Backport of 02391bc98c406f3cd5e329d252ec5c4b63cf979e from master
2021-01-11 08:02:03 +01:00
Hasan Ramezani
2b443cb6c2
[3.1.x] Fixed #32315 -- Doc'd FieldFile.path.
...
Backport of 3eb98743dcaa0b7abd2d5832cba8cc9cb586a964 from master
2021-01-07 12:53:04 +01:00
Fabio Sangiovanni
6d3a623f71
[3.1.x] Fixed #32310 -- Fixed note about reverse accessors for intermediate table for self-referential ManyToManyField.
...
Backport of 2d6c9b97bc706aab1975f57e814461e90e389bb0 from master
2021-01-04 22:21:17 +01:00