<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/tests/middleware, branch devmain</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/chango.git/atom?h=devmain</id>
<link rel='self' href='http://cgit.adnoto.dev/chango.git/atom?h=devmain'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/'/>
<updated>2026-06-08T23:06:46Z</updated>
<entry>
<title>Refs CVE-2026-48587 -- Added helper to properly split header values.</title>
<updated>2026-06-08T23:06:46Z</updated>
<author>
<name>Natalia</name>
<email>124304+nessita@users.noreply.github.com</email>
</author>
<published>2026-06-03T00:38:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=526b1b414d8e215bf627b5722df12a09346dbf6b'/>
<id>urn:sha1:526b1b414d8e215bf627b5722df12a09346dbf6b</id>
<content type='text'>
Extracted the repeated `split(",")` + per-token `.strip()` pattern into
a `split_header_value()` generator in django/utils/http.py. The previous
`cc_delim_re` regex only stripped whitespace adjacent to the comma
delimiter, leaving leading or trailing whitespace on the first and last
tokens. Now, `split_header_value()` strips every token fully, matching
RFC 9110's optional-whitespace rules.

Thanks to Shai Berger, Jacob Walls, and Sarah Boyce for reviews.
</content>
</entry>
<entry>
<title>Refs #36825 -- Fixed regression in CSPSeleniumTestCase.</title>
<updated>2026-05-20T13:30:52Z</updated>
<author>
<name>Johannes Maron</name>
<email>johannes@maron.family</email>
</author>
<published>2026-05-20T12:44:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=9b4433948714d5c43bab96b08bb6618c22512000'/>
<id>urn:sha1:9b4433948714d5c43bab96b08bb6618c22512000</id>
<content type='text'>
The CSP report test relied on the debug view having a CSP error,
which has been fixed in 3e4e0db. This commit added a custom
view to reintroduce the same error to verify the reporting
behavior.

Follow-up to 3e4e0db66961a48a080ff3ff91f6c0d954261366.
</content>
</entry>
<entry>
<title>Fixed #35514 -- Implemented dictionary-based MAILERS.</title>
<updated>2026-05-13T21:00:56Z</updated>
<author>
<name>Mike Edmunds</name>
<email>medmunds@gmail.com</email>
</author>
<published>2026-04-01T23:59:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=0f581cd29d42d1b5ed1dafb67794c2f3ce6705c9'/>
<id>urn:sha1:0f581cd29d42d1b5ed1dafb67794c2f3ce6705c9</id>
<content type='text'>
See DEP 0018.

Added:
* MAILERS setting.
* django.core.mail.mailers dict-like EmailBackend factory.
* `using` argument to mail sending APIs.
* `sent_using` attribute to mail.outbox messages in locmem backend.
* MAILERS in startproject settings template, set to console backend.
* AdminLogHandler.using argument.
* BrokenLinkEmailsMiddleware.send_mail() method.

Updated:
* BaseEmailBackend to track the MAILERS alias used to construct it, and
  to report errors for unknown kwargs (OPTIONS).
* EmailBackend implementations to initialize from kwargs (OPTIONS) only
  when MAILERS is being used.
* smtp.EmailBackend to require `host` option and to default `port`
  option based on SSL/TLS options.
* SimpleTestCase setup to substitute the locmem backend for all defined
  MAILERS configurations.
* Django's tests that send mail to define MAILERS.

Deprecated:
* EMAIL_BACKEND and other backend-related EMAIL_* settings.
* mail.get_connection().
* The `connection`, `fail_silently`, `auth_user`, and `auth_password`
  arguments to mail functions.
* The EmailMessage.connection attribute.
* BaseEmailBackend support for `fail_silently`. Backends that support
  fail_silently (SMTP, console, file) now implement it directly.
* AdminEmailHandler.email_backend argument.

Removed undocumented features without deprecation:
* EmailMessage.get_connection() method. (send() now raises an error if a
  subclass has attempted to override it.)
* EmailMessage.send() no longer sets self.connection to the connection
  used for sending. (It still _uses_ a pre-existing self.connection.)
* AdminEmailHandler.connection() method. (Init now raises an error if a
  subclass has attempted to override it.)

Thanks to Natalia Bidart for shepherding DEP 0018 and for extensive
reviews and suggestions on the implementation.

Thanks to Jacob Rief for the initial implementation and multiple
iterations while refining the design.

Co-authored-by: Jacob Rief &lt;jacob.rief@gmail.com&gt;
</content>
</entry>
<entry>
<title>Refs #35514 -- Cleaned up logging and middleware tests.</title>
<updated>2026-05-07T01:39:16Z</updated>
<author>
<name>Mike Edmunds</name>
<email>medmunds@gmail.com</email>
</author>
<published>2026-04-14T19:43:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=21dcd9a94fb3e9edeec883d12cd1dcac5e773abe'/>
<id>urn:sha1:21dcd9a94fb3e9edeec883d12cd1dcac5e773abe</id>
<content type='text'>
Simplified and removed use of soon-to-be-deprecated or removed features
from tests for AdminEmailHandler and BrokenLinkEmailsMiddleware. Added
or updated cases to ensure `fail_silently` usage remains consistent
during the transition to email providers.

Changed custom FailingEmailBackend to respect fail_silently and record
its use in a class-level property.

In AdminEmailHandlerTest:

* Added make_log_record() helper to reduce duplicated code.

* Changed test_fail_silently() to send through the FailingEmailBackend,
  which will fail if not initialized with fail_silently=True. (Rather
  than inspecting attributes of a soon-to-be-deprecated connection.)

* Simplified test_uses_custom_email_backend() by replacing monkeypatches
  with inspectable custom backend.

* In test_customize_send_mail_method(), removed use of the undocumented
  self.connection() method and the soon-to-be-deprecated `connection`
  arg to mail_managers(). This test verifies a subclass can customize
  sending by mailing the managers rather than the admins. Involving a
  email backend connection was irrelevant.

In BrokenLinkEmailsMiddlewareTest, added a case with FailingEmailBackend
to verify send uses fail_silently=True.
</content>
</entry>
<entry>
<title>Refs #35875 -- Added dark mode support in additional views.</title>
<updated>2026-01-09T20:55:46Z</updated>
<author>
<name>mbcodes</name>
<email>mbcodes@protonmail.com</email>
</author>
<published>2024-11-13T04:17:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=8a0315fab74d603813b2a64ab98d5a208a2eb6d1'/>
<id>urn:sha1:8a0315fab74d603813b2a64ab98d5a208a2eb6d1</id>
<content type='text'>
Thanks Thibaud Colas for the review.
</content>
</entry>
<entry>
<title>Fixed #36656 -- Avoided truncating async streaming responses in GZipMiddleware.</title>
<updated>2025-10-21T14:45:12Z</updated>
<author>
<name>Adam Johnson</name>
<email>me@adamj.eu</email>
</author>
<published>2025-10-10T23:10:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=a0323a0c44135c28134672e6e633e5f4a7a68d5d'/>
<id>urn:sha1:a0323a0c44135c28134672e6e633e5f4a7a68d5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #34989 -- Ensured the Content-Length header is set when redirect with APPEND_SLASH.</title>
<updated>2025-09-03T20:49:34Z</updated>
<author>
<name>Ronan LE HAY</name>
<email>ronan@le-hay.fr</email>
</author>
<published>2025-08-31T12:07:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=e197953f11a7726746bd7c80664cc38d5ea85588'/>
<id>urn:sha1:e197953f11a7726746bd7c80664cc38d5ea85588</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #36532 -- Added Content Security Policy view decorators to override or disable policies.</title>
<updated>2025-08-28T20:23:48Z</updated>
<author>
<name>Rob Hudson</name>
<email>rob@cogit8.org</email>
</author>
<published>2025-08-23T19:23:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=550822bceea227b07445d1852c4376b663c09ea4'/>
<id>urn:sha1:550822bceea227b07445d1852c4376b663c09ea4</id>
<content type='text'>
Co-authored-by: Natalia &lt;124304+nessita@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>Refs #15727 -- Captured failed request log in CSPMiddlewareTest.</title>
<updated>2025-08-26T21:26:01Z</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2025-08-26T21:26:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=d454aefbd1f26da01c3e943d9efec1db5072f5b2'/>
<id>urn:sha1:d454aefbd1f26da01c3e943d9efec1db5072f5b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #36500 -- Rewrapped long docstrings and block comments via a script.</title>
<updated>2025-07-23T23:17:55Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2025-07-23T03:41:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=69a93a88edb56ba47f624dac7a21aacc47ea474f'/>
<id>urn:sha1:69a93a88edb56ba47f624dac7a21aacc47ea474f</id>
<content type='text'>
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
</content>
</entry>
</feed>
