10795 Commits

Author SHA1 Message Date
Carlton Gibson
1e40f427bb [2.1.x] Fixed CVE-2019-12781 -- Made HttpRequest always trust SECURE_PROXY_SSL_HEADER if set.
An HTTP request would not be redirected to HTTPS when the
SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings were used if
the proxy connected to Django via HTTPS.

HttpRequest.scheme will now always trust the SECURE_PROXY_SSL_HEADER if
set, rather than falling back to the request scheme when the
SECURE_PROXY_SSL_HEADER did not have the secure value.

Thanks to Gavin Wahl for the report and initial patch suggestion, and
Shai Berger for review.

Backport of 54d0f5e62f54c29a12dd96f44bacd810cbe03ac8 from master
2019-07-01 08:24:47 +02:00
Mariusz Felisiak
87be9c9626 [2.1.x] Added stub release notes for security releases.
Backport of 30b3ee9d0b33bb440f9c73d1ce9e0e7303887a9f from master
2019-07-01 07:04:03 +02:00
Nick Pope
d58f8e4235 [2.1.x] Added CVE-2019-12308 to the security release archive.
Backport of 21b1d239125f1228e579b1ce8d94d4d5feadd2a6 from master
2019-06-03 21:46:58 +02:00
Nick Pope
8827e09944 [2.1.x] Added CVE-2019-11358 to the security release archive.
Backport of 8fb0ea55830321852a4a051a478f78e24d4f6889 from master
2019-06-03 21:46:54 +02:00
Mariusz Felisiak
73158f19f1 [2.1.x] Fixed typos in 1.11.21, 2.1.9, 2.2.2 release notes.
Backport of 100ec901aebebe56b61f101af38a228414098dd5 from master
2019-06-03 14:12:40 +02:00
Carlton Gibson
95649bc085 [2.1.x] Applied jQuery patch for CVE-2019-11358.
Backport of 34ec52269ade54af31a021b12969913129571a3f from master.
2019-06-03 11:39:15 +02:00
Carlton Gibson
09186a13d9 [2.1.x] Fixed CVE-2019-12308 -- Made AdminURLFieldWidget validate URL before rendering clickable link.
Backport of deeba6d92006999fee9adfbd8be79bf0a59e8008 from master.
2019-06-03 11:37:57 +02:00
Carlton Gibson
f6e2b556e0 [2.1.x] Added stub release notes for security releases.
Backport of 98c0fe19ee2cba9726708ac9336e1dc0d43cca69 from master
2019-06-03 10:51:40 +02:00
Tim Graham
fb2b4253f9 [2.1.x] Refs #27807 -- Removed docs for User.username_validator.
The new override functionality claimed in refs #21379 doesn't work.
Forwardport of 714fdbaa7048c2321f6238d9421137c33d9af7cc from stable/1.10.x.
2019-04-07 20:03:54 -04:00
Mariusz Felisiak
0a8617a5b1
[2.1.x] Refs #30331 -- Doc'd that psycopg2 < 2.8 is required. 2019-04-05 12:06:04 +02:00
Tim Graham
aafdf62921 [2.1.x] Fixed #30289 -- Prevented admin inlines for a ManyToManyField's implicit through model from being editable if the user only has the view permission.
Backport of 8335d59200e4c64dfe3348ea93989d95e0107439 from master.
2019-03-30 17:56:50 -04:00
Tim Graham
6bfad83c2a [2.1.x] Added stub 2.1.8 release notes.
Backport of e245046bb6e8b32360aa48b8a41fb7050f0fc730 from master
2019-03-30 13:04:45 -04:00
Tim Graham
28fb3ea827 [2.1.x] Fixed #30277 -- Fixed broken links to packaging.python.org.
Backport of 8f1cc7e9e61758475ddd6586e0fede4af1ca0e8d from master.
2019-03-21 10:08:29 -04:00
Tobias Bengfort
4fd6e09fdc [2.1.x] Clarified permission-related docs.
Backport of 632d4861ddb99a2c9d11642fcfa4ad542b427d6b from master
2019-02-28 15:29:32 +01:00
Tim Graham
0c295a7570 [2.1.x] Refs #29683 -- Updated multi-db docs for view permission.
Backport of 50f09264ae8ab04824fcc6554e8c184378ad2f81 from master
2019-02-25 14:57:27 -05:00
Mariusz Felisiak
7514a6cc95
[2.1.x] Fixed documentation of database representation for ManyToManyField.
Backport of b0799f5d86b6c0ccb1dcba6e0d2eee336f7f5928 from master
2019-02-25 20:10:22 +01:00
Mariusz Felisiak
8fe63dc4cd
[2.1.x] Fixed #30187 -- Moved "install Django" command to a console box.
Backport of edec11ce86a1a0d9e4c5a2a0df6acaf655041c24 from master.
2019-02-16 08:10:14 +01:00
Tim Graham
e1b55f2d3f [2.1.x] Added CVE-2019-6975 to the security release archive.
Backport of d6e5aad5c7eba3d8061c09902de16cd2b22619af from master.
2019-02-11 16:14:58 -05:00
Tim Graham
5c2b94af2a [2.1.x] Refs #30177 -- Forwardported 2.0.13 release notes.
Backport of 1b8f552b08eb7642be598ba7512e7eaecefbdc6d from master.
2019-02-11 15:55:12 -05:00
Carlton Gibson
168bfdd92b [2.1.x] Refs #30175 -- Added release notes for 2.1.7, 2.0.12, and 1.11.20 releases.
Backport of b39bd0aa6d5667d6bbcf7d349a1035c676e3f972 from master
2019-02-11 15:48:23 +01:00
Carlton Gibson
40cd190557 [2.1.x] Fixed CVE-2019-6975 -- Fixed memory exhaustion in utils.numberformat.format().
Thanks Sjoerd Job Postmus for the report and initial patch.
Thanks Michael Manfre, Tim Graham, and Florian Apolloner for review.

Backport of 402c0caa851e265410fbcaa55318f22d2bf22ee2 from master
2019-02-11 11:11:55 +01:00
Mariusz Felisiak
657bbb139a
[2.1.x] Removed extra characters in docs header underlines.
Backport of 25829197bb94585e94695360065ac614aa9e6a56 from master
2019-02-08 21:41:10 +01:00
Carlton Gibson
5e5ecadaa3 [2.1.x] Added stub release notes for security releases.
Backport of 5cc6f02f91e8860c867cc68cf42e66b5bb54c63d from master
2019-02-07 15:49:51 +01:00
Daniel Hahler
893b80d95d [2.1.x] Fixed duplicate word in docs/releases/2.0.txt.
Backport of fdc4518fe296c169cf54f23fdad2e0fc8785c059 from master.
2019-02-04 18:30:48 -05:00
Tim Graham
f30467fe1d [2.1.x] Used extlinks for GitHub commits.
Backport of c34c6d0a2fc6d9bc55fb2db94b9ed40141babb15 from master.
2019-02-01 15:49:47 -05:00
Sergey Fedoseev
86f0779d09 [2.1.x] Corrected output of Prefetch.to_attr example.
Backport of ba7a420012799b26ec9e969d0276d2ccee93c1f5 from master.
2019-01-31 09:09:48 -05:00
MaximZemskov
3df13847d5 [2.1.x] Fixed #30097 -- Made 'obj' arg of InlineModelAdmin.has_add_permission() optional.
Restored backwards compatibility after refs #27991.
Regression in be6ca89396c031619947921c81b8795d816e3285.

Backport of 3c01fe30f3dd4dc1c8bb4fec816bd277d1ae5fa6 from master.
2019-01-11 18:03:23 -05:00
Tim Graham
7470595459 [2.1.x] Added stub 2.1.6 release notes.
Backport of 36fceeec883c5082168714a0eb14a2fe40f9d79b from master.
2019-01-08 08:57:48 -05:00
Tim Graham
ee1cad4908 [2.1.x] Added CVE-2019-3498 to the security release archive.
Backport of 162ae9c9143aa85eb27ea69b446a28973eea4854 from master.
2019-01-04 09:25:20 -05:00
Tom Hacohen
64d2396e83 [2.1.x] Fixed #30070, CVE-2019-3498 -- Fixed content spoofing possiblity in the default 404 page.
Co-Authored-By: Tim Graham <timograham@gmail.com>
Backport of 1ecc0a395be721e987e8e9fdfadde952b6dee1c7 from master.
2019-01-03 21:22:14 -05:00
Jozef
fcb4d4dd9d [2.1.x] Fixed typo in docs/ref/migration-operations.txt.
Backport of 5bbf31634faad13658dc7bcaeb8139d8625e4349 from master.
2019-01-02 17:56:41 -05:00
Tim Graham
4e4b952123 [2.1.x] Fixed #30050 -- Fixed InlineModelAdmin.has_change_permission() called with non-None obj during add.
Thanks andreage for the report and suggested fix.

Backport of 02c07be95c47efaab9da7422c33ee76142f11336 from master.
2019-01-01 09:53:28 -05:00
Adam Johnson
65ccb1b7e4 [2.1.x] Added examples to HttpRequest.build_absolute_uri() docs.
Backport of b71e3d635a5731ec02469822694d06d964007f9b from master.
2018-12-29 19:45:01 -05:00
Vedran Karačić
400dac7b69 [2.1.x] Updated OWASP Top 10 link to the latest version.
Backport of 293db9eb36e42e8ba976c2639800020d04b95deb from master.
2018-12-27 10:04:41 -05:00
CHI Cheng
6f4130f358 [2.1.x] Fixed broken links to PyYAML page.
Backport of b7dbd5ff68bb9d2235ca081c0bd0b8baa65f8c77 from master.
2018-12-27 10:49:57 +01:00
Marten Kenbeek
a79789e232 [2.1.x] Added import locations to contrib.postgres aggregates and validators docs.
Backport of 7a6dbbb655850bff56cd717a3bfa0975e200d15f from master.
2018-12-24 16:36:14 -05:00
Konstantin Alekseev
08f78a4fc8 [2.1.x] Fixed #30015 -- Ensured request body is properly consumed for keep-alive connections.
Backport of b514dc14f4e1c364341f5931b354e83ef15ee12d and
bbe28fa07658f00786dc1d91ee281b4daac22d07 from master.
2018-12-20 22:17:21 -05:00
Simon Charette
7cf9d15cf8 [2.1.x] Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks are enabled.
Prior to this change foreign key constraint references could be left pointing
at tables dropped during operations simulating unsupported table alterations
because of an unexpected failure to disable foreign key constraint checks.

SQLite3 does not allow disabling such checks while in a transaction so they
must be disabled beforehand.

Thanks ezaquarii for the report and Carlton and Tim for the review.

Backport of 315357ad25a6590e7f4564ec2e56a22132b09001 from master.
2018-12-17 10:01:35 -05:00
Carlton Gibson
8d741bd88f [2.1.x] Fixed #30036 -- Removed unused imports in pagination example.
Backport of a394289b58b1773c4959ed768fdb325c91b2b589 from master
2018-12-12 18:50:53 +01:00
Simon Charette
fc8c2284e9 [2.1.x] Fixed #29182 -- Fixed schema table alteration on SQLite 3.26+.
SQLite 3.26 repoints foreign key constraints on table renames even when
foreign_keys pragma is off which breaks every operation that requires
a table rebuild to simulate unsupported ALTER TABLE statements.

The newly introduced legacy_alter_table pragma disables this behavior
and restores the previous schema editor assumptions.

Thanks Florian Apolloner, Christoph Trassl, Chris Lamb for the report and
troubleshooting assistance.

Backport of c8ffdbe514b55ff5c9a2b8cb8bbdf2d3978c188f from master.
2018-12-07 14:22:27 -05:00
Rodrigo
4c506730b5 [2.1.x] Fixed #29895 -- Doc'd why MySQL's atomic DDL statements don't work for atomic migrations.
Backport of ad191d9e011f37d79a7f2df3da881b06539aaaea from master.
2018-12-06 16:45:39 -05:00
Tim Graham
1084906927 [2.1.x] Fixed #30013 -- Fixed DatabaseOperations.last_executed_query() with mysqlclient 1.3.14+.
Backport of 284b3221a2c17af5bfe2edbf851ac0a9901f91a0 from master.
2018-12-05 15:09:19 -05:00
Carlton Gibson
878744586b [2.1.x] Added stub release notes for 2.1.5 release.
Backport of 196b420fcb0cbdd82970e2b9aea80251bde82056 from master
2018-12-04 16:23:16 +01:00
Carlton Gibson
c74e53f1c9 [2.1.x] Added release date for 2.1.4.
Backport of 346721a0389657e800ef917cfee063c1f49ae0b3 from master
2018-12-03 17:34:59 +01:00
Carlton Gibson
27f5b0aff3 [2.1.x] Fixed #29930 -- Allowed editing in admin with view-only inlines.
Co-authored-by: Tim Graham <timograham@gmail.com>
Backport of 8245c99ee6032c2748ba46583d8cab15b2f9438e from master
2018-12-03 17:34:36 +01:00
Carlton Gibson
b623c49c39 [2.1.x] Added release date for 1.11.17.
Backport of 950112548e61098f442d37a8ded4ef9f83ff8fda from master
2018-12-03 15:21:57 +01:00
raratiru
8f8be2a8d7 [2.1.x] Fixed #29991 -- Doc'd logger propogation for the default logging config.
Backport of 793a71b7be9970bee8cbac68985684628e99ad23 from master.
2018-11-29 20:32:49 -05:00
Basil Dubyk
381bdd4898 [2.1.x] Fixed #29929 -- Fixed admin view-only change form crash when using ModelAdmin.prepopulated_fields.
Backport of 7d1123e5ada60963ba3c708a8932e57342278706 from master.
2018-11-28 15:50:30 -05:00
Tim Graham
a9d9680ea3 [2.1.x] Refs #28205 -- Corrected ModelAdmin.prepopulated_fields docs regarding when they're populated.
Backport of 682cdf6cab8cb76ef1808df45631c39748052e13 from master.
2018-11-28 15:12:31 -05:00
Tim Graham
7e9d5a0aca [2.1.x] Fixed #29317 -- Doc'd filter argument in contrib.postgres aggregates.
Backport of 926fa7116fd633b69277c3ad9b3370ca45163231 from master.
2018-11-27 16:26:18 -05:00