Skip to content

Commit 5facb3d

Browse files
authored
Release 3.12.7rc0 (#11119)
1 parent 741cb61 commit 5facb3d

File tree

11 files changed

+63
-26
lines changed

11 files changed

+63
-26
lines changed

CHANGES.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,68 @@
1010

1111
.. towncrier release notes start
1212
13+
3.12.7rc0 (2025-06-02)
14+
======================
15+
16+
Bug fixes
17+
---------
18+
19+
- Fixed cookie parsing to be more lenient when handling cookies with special characters
20+
in names or values. Cookies with characters like ``{``, ``}``, and ``/`` in names are now
21+
accepted instead of causing a :exc:`~http.cookies.CookieError` and 500 errors. Additionally,
22+
cookies with mismatched quotes in values are now parsed correctly, and quoted cookie
23+
values are now handled consistently whether or not they include special attributes
24+
like ``Domain``. Also fixed :class:`~aiohttp.CookieJar` to ensure shared cookies (domain="", path="")
25+
respect the ``quote_cookie`` parameter, making cookie quoting behavior consistent for
26+
all cookies -- by :user:`bdraco`.
27+
28+
29+
*Related issues and pull requests on GitHub:*
30+
:issue:`2683`, :issue:`5397`, :issue:`7993`, :issue:`11112`.
31+
32+
33+
34+
- Fixed an issue where cookies with duplicate names but different domains or paths
35+
were lost when updating the cookie jar. The :class:`~aiohttp.ClientSession`
36+
cookie jar now correctly stores all cookies even if they have the same name but
37+
different domain or path, following the :rfc:`6265#section-5.3` storage model -- by :user:`bdraco`.
38+
39+
Note that :attr:`ClientResponse.cookies <aiohttp.ClientResponse.cookies>` returns
40+
a :class:`~http.cookies.SimpleCookie` which uses the cookie name as a key, so
41+
only the last cookie with each name is accessible via this interface. All cookies
42+
can be accessed via :meth:`ClientResponse.headers.getall('Set-Cookie')
43+
<multidict.MultiDictProxy.getall>` if needed.
44+
45+
46+
*Related issues and pull requests on GitHub:*
47+
:issue:`4486`, :issue:`11105`, :issue:`11106`.
48+
49+
50+
51+
52+
Miscellaneous internal changes
53+
------------------------------
54+
55+
- Avoided creating closed futures in ``ResponseHandler`` that will never be awaited -- by :user:`bdraco`.
56+
57+
58+
*Related issues and pull requests on GitHub:*
59+
:issue:`11107`.
60+
61+
62+
63+
- Downgraded the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections -- by :user:`bdraco`.
64+
65+
66+
*Related issues and pull requests on GitHub:*
67+
:issue:`11114`.
68+
69+
70+
71+
72+
----
73+
74+
1375
3.12.6 (2025-05-31)
1476
===================
1577

CHANGES/11105.bugfix.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

CHANGES/11106.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGES/11107.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGES/11112.bugfix.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

CHANGES/11114.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGES/2683.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGES/4486.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGES/5397.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGES/7993.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)