Re: [Django] #36499: strip_tags() fails with patched Python versions due to HTMLParser EOF behavior change

11 views
Skip to first unread message

Django

unread,
Jul 14, 2025, 1:26:29 PM7/14/25
to django-...@googlegroups.com
#36499: strip_tags() fails with patched Python versions due to HTMLParser EOF
behavior change
-------------------------------------+-------------------------------------
Reporter: MeggyCal | Owner: Natalia
| Bidart
Type: Bug | Status: assigned
Component: Utilities | Version: 5.2
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* owner: (none) => Natalia Bidart
* severity: Normal => Release blocker
* status: new => assigned

Comment:

We are also seeing the failures in our scheduled tests CI but only when
using Python 3.14
([https://github.com/django/django/actions/runs/16257114450/job/45895218381
example]). I have also reproduced locally with Python 3.14 beta 4.

The changes in Python were driven by a security report started by the
Django Security Team, following up some private reports we got. I think we
need to update the tests and stick as much as possible to the Python's
`HTMLParser` behavior. Also, we need to backport this to the supported
stable branches, so I'll mark it as release blocker.
--
Ticket URL: <https://code.djangoproject.com/ticket/36499#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 14, 2025, 1:54:26 PM7/14/25
to django-...@googlegroups.com
#36499: strip_tags() fails with patched Python versions due to HTMLParser EOF
behavior change
-------------------------------------+-------------------------------------
Reporter: MeggyCal | Owner: Natalia
| Bidart
Type: Bug | Status: assigned
Component: Utilities | Version: 5.2
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* has_patch: 0 => 1
* needs_docs: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36499#comment:4>

Django

unread,
Jul 16, 2025, 7:44:41 AM7/16/25
to django-...@googlegroups.com
#36499: strip_tags() fails with patched Python versions due to HTMLParser EOF
behavior change
-------------------------------------+-------------------------------------
Reporter: MeggyCal | Owner: Natalia
Type: | Bidart
Cleanup/optimization | Status: assigned
Component: Utilities | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* needs_better_patch: 0 => 1
* needs_docs: 1 => 0
* severity: Release blocker => Normal
* type: Bug => Cleanup/optimization

Comment:

I've discussed this issue with Sarah and she made the valid point that
since this affects tests only, it shouldn't require release notes nor the
"Release Blocker" status. Updating!

Setting as "patch needs improvement" to block the PR until the Python
versions are released.
--
Ticket URL: <https://code.djangoproject.com/ticket/36499#comment:5>
Reply all
Reply to author
Forward
0 new messages