[
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6190",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6190/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6190/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6190/events",
    "html_url": "https://github.com/pallets/flask/issues/6190",
    "id": 6454242421,
    "node_id": "I_kwDOAAkbnM8AAAABgLPsdQ",
    "number": 6190,
    "title": "[rejected AI] Request context remains active when `open_session()` raises during `test_request_context()` entry",
    "user": {
      "login": "Mahesh-011-vk",
      "id": 273003251,
      "node_id": "U_kgDOEEWy8w",
      "avatar_url": "https://avatars.githubusercontent.com/u/273003251?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Mahesh-011-vk",
      "html_url": "https://github.com/Mahesh-011-vk",
      "followers_url": "https://api.github.com/users/Mahesh-011-vk/followers",
      "following_url": "https://api.github.com/users/Mahesh-011-vk/following{/other_user}",
      "gists_url": "https://api.github.com/users/Mahesh-011-vk/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Mahesh-011-vk/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Mahesh-011-vk/subscriptions",
      "organizations_url": "https://api.github.com/users/Mahesh-011-vk/orgs",
      "repos_url": "https://api.github.com/users/Mahesh-011-vk/repos",
      "events_url": "https://api.github.com/users/Mahesh-011-vk/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Mahesh-011-vk/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": false,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-11-17T21:12:30Z",
    "updated_at": "2026-11-17T23:05:32Z",
    "closed_at": "2026-11-17T23:05:32Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": null,
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "### Describe the bug\n\nWhen a custom `SessionInterface.open_session()` raises an exception while entering `app.test_request_context()` as a context manager, Flask leaves the request and application contexts active.\n\nThe context is activated before session initialization. If session initialization fails, the context token is not reset. Since `__enter__()` raises, Python does not invoke `__exit__()` to clean up the partially entered context.\n\n### Steps to reproduce\n\nRun this minimal example:\n\n```python\nimport flask\nfrom flask.sessions import SessionInterface\n\nclass FailingSessionInterface(SessionInterface):\n    def open_session(self, app, request):\n        raise RuntimeError(\"session loading failed\")\n\n    def save_session(self, app, session, response):\n        pass\n\napp = flask.Flask(__name__)\napp.session_interface = FailingSessionInterface()\n\ntry:\n    with app.test_request_context(\"/failure\"):\n        pass\nexcept RuntimeError:\n    pass\n\nprint(\"Request context:\", flask.has_request_context())\nprint(\"App context:\", flask.has_app_context())\n```\n\n### Actual behavior\n\n```text\nRequest context: True\nApp context: True\n```\n\nBoth contexts remain active after the exception.\n\nAdditionally, entering and exiting another successful request context temporarily replaces the stale context, but the original failed context becomes active again afterward.\n\n### Expected behavior\n\nFlask should clean up the partially initialized context when `push()` fails.\n\nAfter catching the exception, both checks should return `False` when there was no previously active context:\n\n```python\nassert not flask.has_request_context()\nassert not flask.has_app_context()\n```\n\nThe failed context should also not be restored after a subsequent successful context exits.\n\n### Additional verification\n\n- Reproduced on commit `49943b5a94413a530761350f04e896f76e8d620e`.\n- Added a regression test in `tests/test_reqctx.py`.\n- The new regression test fails at the context cleanup assertion.\n- Existing `test_session_error_pops_context` passes.\n- Full `tests/test_reqctx.py`: 10 passed, 1 failed (the new regression test).\n\n### Environment\n\n- Python version: 3.13.9\n- Flask version: 3.2.0.dev0 (development checkout)\n- OS: macOS 26.5.1",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6190/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6190/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6188",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6188/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6188/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6188/events",
    "html_url": "https://github.com/pallets/flask/issues/6188",
    "id": 6392046211,
    "node_id": "I_kwDOAAkbnM8AAAABfP7igw",
    "number": 6188,
    "title": "[rejected AI] stream_with_context closes the wrapped iterator twice when a response is closed early",
    "user": {
      "login": "rutikabhoyar06",
      "id": 134674560,
      "node_id": "U_kgDOCAb4gA",
      "avatar_url": "https://avatars.githubusercontent.com/u/134674560?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/rutikabhoyar06",
      "html_url": "https://github.com/rutikabhoyar06",
      "followers_url": "https://api.github.com/users/rutikabhoyar06/followers",
      "following_url": "https://api.github.com/users/rutikabhoyar06/following{/other_user}",
      "gists_url": "https://api.github.com/users/rutikabhoyar06/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/rutikabhoyar06/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/rutikabhoyar06/subscriptions",
      "organizations_url": "https://api.github.com/users/rutikabhoyar06/orgs",
      "repos_url": "https://api.github.com/users/rutikabhoyar06/repos",
      "events_url": "https://api.github.com/users/rutikabhoyar06/events{/privacy}",
      "received_events_url": "https://api.github.com/users/rutikabhoyar06/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": false,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-11-14T15:28:36Z",
    "updated_at": "2026-11-14T18:04:09Z",
    "closed_at": "2026-11-14T18:04:01Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": null,
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "### Description\n\nWhen a response using `stream_with_context()` is closed before the wrapped iterator is fully consumed, the underlying iterator's `close()` method is called twice.\n\nThis can cause errors or duplicate cleanup side effects for custom iterators whose `close()` method is not idempotent.\n\n### Environment\n\n- Flask: 3.2.0.dev0 (editable installation from the main branch)\n- Python: 3.14\n- Werkzeug: 3.1.9\n- OS: Windows\n\n### Steps to Reproduce\n\n1. Create a custom iterator with a `close()` method that records each call.\n2. Return it through `Response(stream_with_context(Wrapper()))`.\n3. Request the response with `buffered=False`.\n4. Close the response before consuming the stream.\n\n### Minimal Reproduction\n\n```python\nfrom flask import Flask, Response, stream_with_context\n\napp = Flask(__name__)\nclose_count = 0\n\nclass Wrapper:\n    def __iter__(self):\n        return self\n\n    def __next__(self):\n        return \"hello\"\n\n    def close(self):\n        global close_count\n        close_count += 1\n        print(\"close() call:\", close_count)\n\n        if close_count > 1:\n            raise RuntimeError(\"Iterator closed more than once\")\n\n@app.route(\"/\")\ndef index():\n    return Response(stream_with_context(Wrapper()))\n\nclient = app.test_client()\nresponse = client.get(\"/\", buffered=False)\n\ntry:\n    response.close()\nexcept Exception as e:\n    print(\"Cleanup error:\", repr(e))\n```\n\n### Actual Behavior\n\nThe output is:\n\n```text\nclose() call: 1\nclose() call: 2\nCleanup error: RuntimeError('Iterator closed more than once')\n```\n\nAs a control test, returning `Response(Wrapper())` without `stream_with_context()` calls `close()` only once.\n\n### Expected Behavior\n\nThe underlying iterator's `close()` method should be called only once when the response is closed.\n\n### Suspected Cause\n\nIn `src/flask/helpers.py`, `stream_with_context()` delegates iteration using `yield from gen` and also explicitly calls `gen.close()` in its `finally` block.\n\nClosing the outer generator may already propagate `close()` to the delegated iterator through `yield from`. The explicit call in `finally` appears to invoke it a second time.\n\n### Impact\n\nCustom streaming iterators may perform cleanup twice, raise exceptions during response cleanup, or repeat resource-release side effects.\n\n### Related Issue\n\nFlask issue #6123 discusses a separate generator/context cleanup problem in `stream_with_context()`. This report concerns duplicate calls to the wrapped iterator's `close()` method.",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6188/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6188/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6187",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6187/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6187/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6187/events",
    "html_url": "https://github.com/pallets/flask/issues/6187",
    "id": 6354246635,
    "node_id": "I_kwDOAAkbnM8AAAABer4b6w",
    "number": 6187,
    "title": "[rejected AI] Replacing a JSON tag with force=True leaves the old tag in the order",
    "user": {
      "login": "yashaswiniajjol",
      "id": 277518976,
      "node_id": "U_kgDOEIqagA",
      "avatar_url": "https://avatars.githubusercontent.com/u/277518976?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/yashaswiniajjol",
      "html_url": "https://github.com/yashaswiniajjol",
      "followers_url": "https://api.github.com/users/yashaswiniajjol/followers",
      "following_url": "https://api.github.com/users/yashaswiniajjol/following{/other_user}",
      "gists_url": "https://api.github.com/users/yashaswiniajjol/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/yashaswiniajjol/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/yashaswiniajjol/subscriptions",
      "organizations_url": "https://api.github.com/users/yashaswiniajjol/orgs",
      "repos_url": "https://api.github.com/users/yashaswiniajjol/repos",
      "events_url": "https://api.github.com/users/yashaswiniajjol/events{/privacy}",
      "received_events_url": "https://api.github.com/users/yashaswiniajjol/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": false,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-11-12T16:26:38Z",
    "updated_at": "2026-11-13T00:52:32Z",
    "closed_at": "2026-11-13T00:52:22Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": null,
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "### What happened?\n\nI was checking how `TaggedJSONSerializer.register()` behaves when an existing tag is replaced using `force=True`.\n\nI noticed that the old tag still remains in `self.order`, even though `self.tags[key]` now points to the new tag.\n\nSince serialization uses `self.order` and deserialization uses `self.tags`, they can end up using different implementations for the same tag key.\n\n### How to reproduce\n\nI used the following example to test this:\n\n```python\nfrom datetime import datetime\nfrom flask.json.tag import JSONTag, TaggedJSONSerializer\n\nclass SpecialDateTime(datetime):\n    pass\n\nclass ReplacementDateTag(JSONTag):\n    key = \" d\"\n\n    def check(self, value):\n        return isinstance(value, SpecialDateTime)\n\n    def to_json(self, value):\n        return value.isoformat()\n\n    def to_python(self, value):\n        return datetime.fromisoformat(value)\n\nserializer = TaggedJSONSerializer()\nold_tag = serializer.tags[\" d\"]\n\nserializer.register(ReplacementDateTag, force=True, index=0)\n\nprint(old_tag in serializer.order)  # True\n\nvalue = datetime(2026, 11, 12, 10, 30)\nencoded = serializer.dumps(value)\nprint(encoded)\n\nserializer.loads(encoded)\n```\n\nThe old tag is still present in the serialization order. When I try to deserialize the value, it raises a `ValueError` because the replacement tag expects ISO format, while the original tag produced an HTTP-date string.\n\n### Actual result\n\n```text\nValueError: Invalid isoformat string:\n'Thu, 12 Nov 2026 10:30:00 GMT'\n```\n\n### Expected behavior\n\nI expected the old tag to be replaced in the serialization order as well, so that serialization and deserialization use compatible tag implementations.\n\n### Test results\n\nI ran the existing JSON tag tests:\n\n```text\n14 passed in 0.12s\n```\n\nThe existing tests pass, but they don't cover this particular round-trip scenario after replacing a tag.\n\nTested Flask commit:\n\n`49943b5a94413a530761350f04e896f76e8d620e`",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6187/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6187/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6186",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6186/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6186/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6186/events",
    "html_url": "https://github.com/pallets/flask/issues/6186",
    "id": 6325205997,
    "node_id": "I_kwDOAAkbnM8AAAABeQL77Q",
    "number": 6186,
    "title": "[rejected AI] Flask.__init_subclass__ does not call super(), breaking cooperative subclass hooks",
    "user": {
      "login": "Mithu-123456",
      "id": 180190101,
      "node_id": "U_kgDOCr17lQ",
      "avatar_url": "https://avatars.githubusercontent.com/u/180190101?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Mithu-123456",
      "html_url": "https://github.com/Mithu-123456",
      "followers_url": "https://api.github.com/users/Mithu-123456/followers",
      "following_url": "https://api.github.com/users/Mithu-123456/following{/other_user}",
      "gists_url": "https://api.github.com/users/Mithu-123456/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Mithu-123456/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Mithu-123456/subscriptions",
      "organizations_url": "https://api.github.com/users/Mithu-123456/orgs",
      "repos_url": "https://api.github.com/users/Mithu-123456/repos",
      "events_url": "https://api.github.com/users/Mithu-123456/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Mithu-123456/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": false,
    "assignees": [],
    "milestone": null,
    "comments": 0,
    "created_at": "2026-11-11T09:07:27Z",
    "updated_at": "2026-11-11T15:58:57Z",
    "closed_at": "2026-11-11T14:35:58Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": null,
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "## Description\n\n`Flask.__init_subclass__` accepts `**kwargs` but does not forward them to `super().__init_subclass__(**kwargs)`.\n\nThis breaks cooperative multiple inheritance when Flask appears before a mixin in the class MRO. The mixin's `__init_subclass__` hook is never called. It also silently accepts unknown class keyword arguments instead of raising `TypeError`.\n\nThis is a regression compared with Flask 3.1.3, where `Flask` does not define this method.\n\n## To reproduce\n\n```python\nfrom flask import Flask\n\nclass Registry:\n    registered = []\n\n    def __init_subclass__(cls, *, tag=None, **kwargs):\n        super().__init_subclass__(**kwargs)\n        Registry.registered.append((cls.__name__, tag))\n\nclass A(Flask, Registry, tag=\"x\"):\n    pass\n\nclass B(Registry, Flask, tag=\"y\"):\n    pass\n\nprint((\"A\", \"x\") in Registry.registered)\nprint((\"B\", \"y\") in Registry.registered)\n\ntry:\n    class C(Flask, bogus=1):\n        pass\n    print(\"accepted silently\")\nexcept TypeError as e:\n    print(e)\n```\n\nOn the affected main branch, the first result is `False`, the second is `True`, and the unknown keyword is silently accepted.\n\nOn Flask 3.1.3, both mixin hooks run and the unknown keyword raises `TypeError`.\n\n## Expected behavior\n\n`Flask.__init_subclass__` should cooperate with the method resolution order by forwarding remaining keyword arguments to `super().__init_subclass__(**kwargs)`.\n\nMixin hooks should execute, and unsupported class keyword arguments should raise `TypeError`.\n\n## Proposed fix\n\n```diff\n def __init_subclass__(cls, **kwargs: t.Any) -> None:\n+    super().__init_subclass__(**kwargs)\n     import warnings\n```\n\n## Suggested regression tests\n\n```python\ndef test_subclass_cooperates_with_mixin_init_subclass():\n    seen = []\n\n    class Mixin:\n        def __init_subclass__(cls, *, tag=None, **kwargs):\n            super().__init_subclass__(**kwargs)\n            seen.append(tag)\n\n    class MyApp(flask.Flask, Mixin, tag=\"x\"):\n        pass\n\n    assert seen == [\"x\"]\n\n\ndef test_subclass_rejects_unknown_keyword():\n    with pytest.raises(TypeError):\n        class MyApp(flask.Flask, bogus=1):\n            pass\n```\n\n## Environment\n\n- Flask: 3.2.0.dev (main, commit `49943b5a94413a530761350f04e896f76e8d620e`)\n- Werkzeug: 3.1.9\n- Python: 3.12.3\n\nThe issue was reproduced against Flask 3.1.3 for comparison.\n\n",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6186/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6186/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6185",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6185/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6185/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6185/events",
    "html_url": "https://github.com/pallets/flask/issues/6185",
    "id": 6259627731,
    "node_id": "I_kwDOAAkbnM8AAAABdRpW0w",
    "number": 6185,
    "title": "[rejected AI] stream_with_context calls the underlying iterator's close() twice on early termination",
    "user": {
      "login": "Yashodhahr01",
      "id": 193688618,
      "node_id": "U_kgDOC4t0Kg",
      "avatar_url": "https://avatars.githubusercontent.com/u/193688618?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Yashodhahr01",
      "html_url": "https://github.com/Yashodhahr01",
      "followers_url": "https://api.github.com/users/Yashodhahr01/followers",
      "following_url": "https://api.github.com/users/Yashodhahr01/following{/other_user}",
      "gists_url": "https://api.github.com/users/Yashodhahr01/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Yashodhahr01/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Yashodhahr01/subscriptions",
      "organizations_url": "https://api.github.com/users/Yashodhahr01/orgs",
      "repos_url": "https://api.github.com/users/Yashodhahr01/repos",
      "events_url": "https://api.github.com/users/Yashodhahr01/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Yashodhahr01/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": false,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-11-07T13:32:50Z",
    "updated_at": "2026-11-07T14:54:23Z",
    "closed_at": "2026-11-07T14:54:09Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": null,
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "## Description\n\nWhen a stream wrapped with Flask's `stream_with_context()` is closed before completion, the underlying iterator's `close()` method appears to be called twice.\n\nThis seems to happen because `yield from gen` automatically forwards the close operation to the underlying iterator, and the `finally` block explicitly calls `gen.close()` again.\n\nThis can cause a `RuntimeError` for iterators whose cleanup method cannot safely execute more than once.\n\n## Steps to reproduce\n\nRun this minimal example:\n\n```python\nfrom flask import Flask, stream_with_context\n\napp = Flask(__name__)\n\nclass CustomIterator:\n    def __init__(self):\n        self.closed = False\n\n    def __iter__(self):\n        return self\n\n    def __next__(self):\n        return \"Hello\"\n\n    def close(self):\n        if self.closed:\n            raise RuntimeError(\"Resource already closed\")\n        self.closed = True\n        print(\"Resource closed successfully\")\n\nwith app.test_request_context(\"/\"):\n    wrapped = stream_with_context(CustomIterator())\n    next(wrapped)\n\n    try:\n        wrapped.close()\n    except Exception as e:\n        print(\"CLEANUP ERROR:\", type(e).__name__, str(e))\n```\n\n## Actual behavior\n\nOutput:\n\n```text\nResource closed successfully\nCLEANUP ERROR: RuntimeError Resource already closed\n```\n\nThe underlying iterator's `close()` method is called twice during early termination.\n\n## Expected behavior\n\nThe underlying iterator's `close()` method should be called only once when the wrapped stream is closed early.\n\n## Additional information\n\nNormal stream completion calls the underlying iterator's `close()` only once.\n\nThe existing test `test_streaming_with_context_and_custom_close` passes, but it does not cover early termination.\n\n## Environment\n\n- Flask: 3.2.0.dev0\n- Python: 3.14.2\n- Werkzeug: 3.1.9\n- OS: Windows 11\n\n## Suspected source location\n\n`src/flask/helpers.py`, inside `stream_with_context()`, specifically the `yield from gen` statement and the subsequent `finally` cleanup block.",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6185/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6185/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6184",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6184/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6184/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6184/events",
    "html_url": "https://github.com/pallets/flask/issues/6184",
    "id": 6253103845,
    "node_id": "I_kwDOAAkbnM8AAAABdLbK5Q",
    "number": 6184,
    "title": "[rejected AI] Validate session cookie name prefixes and Partitioned requirements",
    "user": {
      "login": "knklinux",
      "id": 207121054,
      "node_id": "U_kgDODFhqng",
      "avatar_url": "https://avatars.githubusercontent.com/u/207121054?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/knklinux",
      "html_url": "https://github.com/knklinux",
      "followers_url": "https://api.github.com/users/knklinux/followers",
      "following_url": "https://api.github.com/users/knklinux/following{/other_user}",
      "gists_url": "https://api.github.com/users/knklinux/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/knklinux/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/knklinux/subscriptions",
      "organizations_url": "https://api.github.com/users/knklinux/orgs",
      "repos_url": "https://api.github.com/users/knklinux/repos",
      "events_url": "https://api.github.com/users/knklinux/events{/privacy}",
      "received_events_url": "https://api.github.com/users/knklinux/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": false,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-11-07T00:24:38Z",
    "updated_at": "2026-11-07T01:40:35Z",
    "closed_at": "2026-11-07T01:40:26Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": null,
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "Hi,\n\nSmall hardening patch with tests, ready on a branch:\nhttps://github.com/knklinux/flask/tree/session-cookie-prefix-validation\n\n**What it changes** — `SecureCookieSessionInterface` checks the session cookie name and attributes before using them: a `__Host-` name must be paired with `Secure`, no `Domain` and `Path=/`, a `__Secure-` name with `Secure`, and `SESSION_COOKIE_PARTITIONED` requires `SESSION_COOKIE_SECURE`. A configuration that breaks those rules raises `RuntimeError` naming the offending setting, next to the existing missing-secret-key error.\n\n**Why** — RFC 6265bis section 4.1.3 gives both prefixes mandatory attribute requirements, and user agents discard a cookie that does not meet them without reporting anything back. With `SESSION_COOKIE_NAME = \"__Host-session\"` and `SESSION_COOKIE_DOMAIN` (or `SESSION_COOKIE_PATH`, or `SESSION_COOKIE_SECURE = False`) the response carries a `Set-Cookie` that every browser drops, so the session is silently never stored and the application looks like it has working sessions until someone logs in. The same happens with `SESSION_COOKIE_PARTITIONED` without `Secure`. Flask already fails loudly when the secret key is missing; this is the same class of configuration error and it was not checked.\n\n**Tests** — 10 new cases in `tests/test_session_cookie_prefix.py` (accepted `__Host-`/`__Secure-` configurations round-trip a session; each violation raises with the setting name; lowercase `__host-` is a plain name because the prefixes are case sensitive; `Partitioned` with and without `Secure`). Full suite 501 passed, 3 skipped.\n\nThis repository does not accept pull requests from non-collaborators, so I am leaving the patch here instead of opening a PR. Happy to submit it in whatever form you prefer.\n\n<details><summary>Patch (172 lines)</summary>\n\n```diff\ndiff --git a/CHANGES.rst b/CHANGES.rst\nindex c1bcf62..383d25a 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -3,6 +3,12 @@ Version 3.2.0\n \n Unreleased\n \n+-   ``SecureCookieSessionInterface`` validates the session cookie name and\n+    attributes against :rfc:`6265bis` before using them. A ``__Host-`` or\n+    ``__Secure-`` prefixed ``SESSION_COOKIE_NAME`` that user agents would\n+    discard, or ``SESSION_COOKIE_PARTITIONED`` without\n+    ``SESSION_COOKIE_SECURE``, raises ``RuntimeError`` instead of silently\n+    producing a cookie that is never stored.\n -   Drop support for Python 3.9 and 3.10. :pr:`5730` :pr:`6168`\n -   Remove previously deprecated code: ``__version__``. :pr:`5648`\n -   ``RequestContext`` has merged with ``AppContext``. ``RequestContext`` is now\ndiff --git a/src/flask/sessions.py b/src/flask/sessions.py\nindex 1e76b74..b54ab0b 100644\n--- a/src/flask/sessions.py\n+++ b/src/flask/sessions.py\n@@ -300,6 +300,44 @@ class SecureCookieSessionInterface(SessionInterface):\n     serializer = session_json_serializer\n     session_class = SecureCookieSession\n \n+    def _validate_cookie_settings(self, app: Flask) -> None:\n+        \"\"\"Raise if browsers would reject the configured session cookie.\n+\n+        :rfc:`6265bis` section 4.1.3 gives the ``__Host-`` and ``__Secure-``\n+        prefixes mandatory attribute requirements, and the ``Partitioned``\n+        attribute requires ``Secure``. User agents discard a cookie that\n+        breaks them without reporting anything back, so a prefixed session\n+        cookie would silently never be stored and the session would never\n+        persist.\n+\n+        .. versionadded:: 3.2\n+        \"\"\"\n+        name = self.get_cookie_name(app)\n+        secure = self.get_cookie_secure(app)\n+        problems: list[str] = []\n+\n+        if name.startswith(\"__Host-\"):\n+            if not secure:\n+                problems.append(\"SESSION_COOKIE_SECURE must be True\")\n+\n+            if self.get_cookie_domain(app) is not None:\n+                problems.append(\"SESSION_COOKIE_DOMAIN must not be set\")\n+\n+            if self.get_cookie_path(app) != \"/\":\n+                problems.append('SESSION_COOKIE_PATH must be \"/\"')\n+        elif name.startswith(\"__Secure-\") and not secure:\n+            problems.append(\"SESSION_COOKIE_SECURE must be True\")\n+\n+        if self.get_cookie_partitioned(app) and not secure:\n+            problems.append(\"SESSION_COOKIE_PARTITIONED requires SESSION_COOKIE_SECURE\")\n+\n+        if problems:\n+            raise RuntimeError(\n+                f\"The session cookie name {name!r} cannot be used with the current\"\n+                f\" configuration: {'; '.join(problems)}. Browsers would reject the\"\n+                \" cookie, so the session would never be stored.\"\n+            )\n+\n     def get_signing_serializer(self, app: Flask) -> URLSafeTimedSerializer | None:\n         if not app.secret_key:\n             return None\n@@ -321,6 +359,7 @@ class SecureCookieSessionInterface(SessionInterface):\n         )\n \n     def open_session(self, app: Flask, request: Request) -> SecureCookieSession | None:\n+        self._validate_cookie_settings(app)\n         s = self.get_signing_serializer(app)\n         if s is None:\n             return None\n@@ -337,6 +376,7 @@ class SecureCookieSessionInterface(SessionInterface):\n     def save_session(\n         self, app: Flask, session: SessionMixin, response: Response\n     ) -> None:\n+        self._validate_cookie_settings(app)\n         name = self.get_cookie_name(app)\n         domain = self.get_cookie_domain(app)\n         path = self.get_cookie_path(app)\ndiff --git a/tests/test_session_cookie_prefix.py b/tests/test_session_cookie_prefix.py\nnew file mode 100644\nindex 0000000..85c2da0\n--- /dev/null\n+++ b/tests/test_session_cookie_prefix.py\n@@ -0,0 +1,84 @@\n+\"\"\"Tests for the session cookie name prefix and attribute requirements.\"\"\"\n+\n+from __future__ import annotations\n+\n+import pytest\n+\n+import flask\n+\n+\n+def _app(name: str, **config: object) -> flask.Flask:\n+    app = flask.Flask(__name__)\n+    app.testing = True\n+    app.secret_key = \"test\"\n+    app.config[\"SESSION_COOKIE_NAME\"] = name\n+    app.config.update(config)\n+\n+    @app.route(\"/\")\n+    def index() -> str:\n+        flask.session[\"x\"] = 1\n+        return \"ok\"\n+\n+    @app.route(\"/read\")\n+    def read() -> str:\n+        return str(flask.session.get(\"x\"))\n+\n+    return app\n+\n+\n+@pytest.mark.parametrize(\n+    (\"name\", \"config\"),\n+    [\n+        (\"__Host-session\", {\"SESSION_COOKIE_SECURE\": True}),\n+        (\"__Secure-session\", {\"SESSION_COOKIE_SECURE\": True}),\n+        (\"session\", {}),\n+        (\"__host-session\", {}),\n+    ],\n+)\n+def test_accepted_configuration(name, config):\n+    \"\"\"Configurations browsers accept still set a cookie that round-trips.\"\"\"\n+    app = _app(name, **config)\n+    client = app.test_client()\n+    assert client.get(\"/\").status_code == 200\n+    assert client.get(\"/read\").get_data(as_text=True) == \"1\"\n+\n+\n+@pytest.mark.parametrize(\n+    (\"name\", \"config\", \"match\"),\n+    [\n+        (\n+            \"__Host-session\",\n+            {\"SESSION_COOKIE_SECURE\": True, \"SESSION_COOKIE_DOMAIN\": \".example.com\"},\n+            \"SESSION_COOKIE_DOMAIN\",\n+        ),\n+        (\n+            \"__Host-session\",\n+            {\"SESSION_COOKIE_SECURE\": True, \"SESSION_COOKIE_PATH\": \"/app\"},\n+            \"SESSION_COOKIE_PATH\",\n+        ),\n+        (\"__Host-session\", {}, \"SESSION_COOKIE_SECURE\"),\n+        (\"__Secure-session\", {}, \"SESSION_COOKIE_SECURE\"),\n+    ],\n+)\n+def test_rejected_configuration(name, config, match):\n+    \"\"\"A prefix whose requirements are not met is reported, not silently sent.\"\"\"\n+    app = _app(name, **config)\n+\n+    with pytest.raises(RuntimeError, match=match):\n+        app.test_client().get(\"/\")\n+\n+\n+def test_partitioned_requires_secure():\n+    app = _app(\"session\", SESSION_COOKIE_PARTITIONED=True)\n+\n+    with pytest.raises(RuntimeError, match=\"PARTITIONED\"):\n+        app.test_client().get(\"/\")\n+\n+\n+def test_partitioned_with_secure_is_accepted():\n+    app = _app(\"session\", SESSION_COOKIE_PARTITIONED=True, SESSION_COOKIE_SECURE=True)\n+    response = app.test_client().get(\"/\")\n+    header = response.headers[\"Set-Cookie\"]\n+\n+    assert \"Partitioned\" in header\n+    assert \"Secure\" in header\n```\n\n</details>\n\nThanks,\nknklinux\n",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6184/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6184/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6183",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6183/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6183/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6183/events",
    "html_url": "https://github.com/pallets/flask/issues/6183",
    "id": 6240408449,
    "node_id": "I_kwDOAAkbnM8AAAABc_UTgQ",
    "number": 6183,
    "title": "[rejected AI] Cannot disable request limits with None",
    "user": {
      "login": "Anil123-eng",
      "id": 183182212,
      "node_id": "U_kgDOCusjhA",
      "avatar_url": "https://avatars.githubusercontent.com/u/183182212?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Anil123-eng",
      "html_url": "https://github.com/Anil123-eng",
      "followers_url": "https://api.github.com/users/Anil123-eng/followers",
      "following_url": "https://api.github.com/users/Anil123-eng/following{/other_user}",
      "gists_url": "https://api.github.com/users/Anil123-eng/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Anil123-eng/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Anil123-eng/subscriptions",
      "organizations_url": "https://api.github.com/users/Anil123-eng/orgs",
      "repos_url": "https://api.github.com/users/Anil123-eng/repos",
      "events_url": "https://api.github.com/users/Anil123-eng/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Anil123-eng/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": false,
    "assignees": [],
    "milestone": null,
    "comments": 2,
    "created_at": "2026-11-06T09:44:43Z",
    "updated_at": "2026-11-06T17:35:01Z",
    "closed_at": "2026-11-06T17:34:51Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": null,
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "## Description\n\nWhen an application configures a request limit globally, assigning `None` to the corresponding request property does not disable that limit for an individual request.\n\nFor example, with `MAX_CONTENT_LENGTH = 10`, setting `request.max_content_length = None` still enforces the 10-byte limit.\n\n## Steps to reproduce\n\n```python\nfrom flask import Flask, request\n\napp = Flask(__name__)\napp.config[\"MAX_CONTENT_LENGTH\"] = 10\n\n@app.post(\"/unlimited\")\ndef unlimited():\n    request.max_content_length = None\n    return str(len(request.get_data()))\n\nclient = app.test_client()\nresponse = client.post(\"/unlimited\", data=\"A\" * 20)\n\nprint(response.status_code)\n```\n\n## Actual behavior\n\n```text\n413 Request Entity Too Large\n```\n\nThe explicit `None` assignment does not disable the configured limit.\n\nA positive integer per-request override works, but an explicit `None` does not.\n\nThe same getter/setter pattern appears in `max_form_memory_size` and `max_form_parts`. Their effective values were also checked with `None` assignments, although the HTTP reproduction above specifically demonstrates `max_content_length`.\n\n## Expected behavior\n\nSetting `request.max_content_length = None` should disable the Flask application-level limit for that request, allowing the 20-byte request body to be read.\n\n## Possible root cause\n\nIn `src/flask/wrappers.py`, the getter checks:\n\n```python\nif self._max_content_length is not None:\n    return self._max_content_length\n```\n\nIf the stored value is `None`, it falls back to the application configuration.\n\nThe setter stores the supplied value directly:\n\n```python\nself._max_content_length = value\n```\n\nThis makes an unset override indistinguishable from an explicitly assigned `None`.\n\nThe same pattern appears in the other two request-limit properties.\n\n## Existing test coverage\n\n`tests/test_request.py` checks application-level configuration and positive integer per-request overrides in `test_limit_config`, but does not test explicitly setting these properties to `None` after configuring finite application-level limits.\n\n## Environment\n\n- Flask: 3.2.0.dev0\n- Python: 3.14.7\n- OS: Windows 11\n- Branch: main\n- Commit: 49943b5a",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6183/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6183/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6182",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6182/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6182/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6182/events",
    "html_url": "https://github.com/pallets/flask/issues/6182",
    "id": 6229492263,
    "node_id": "I_kwDOAAkbnM8AAAABc06CJw",
    "number": 6182,
    "title": "[rejected AI] Application context remains active when an `appcontext_pushed` signal receiver raises an exception",
    "user": {
      "login": "tahseenanjum",
      "id": 173802877,
      "node_id": "U_kgDOClwFfQ",
      "avatar_url": "https://avatars.githubusercontent.com/u/173802877?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/tahseenanjum",
      "html_url": "https://github.com/tahseenanjum",
      "followers_url": "https://api.github.com/users/tahseenanjum/followers",
      "following_url": "https://api.github.com/users/tahseenanjum/following{/other_user}",
      "gists_url": "https://api.github.com/users/tahseenanjum/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/tahseenanjum/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/tahseenanjum/subscriptions",
      "organizations_url": "https://api.github.com/users/tahseenanjum/orgs",
      "repos_url": "https://api.github.com/users/tahseenanjum/repos",
      "events_url": "https://api.github.com/users/tahseenanjum/events{/privacy}",
      "received_events_url": "https://api.github.com/users/tahseenanjum/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-11-05T18:46:59Z",
    "updated_at": "2026-11-20T00:07:12Z",
    "closed_at": "2026-11-05T22:52:08Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "## Bug description\n\nWhen a receiver connected to Flask's `appcontext_pushed` signal raises an exception, `AppContext.push()` propagates the exception but leaves the application context active.\n\nThis can cause an unexpected application context to remain active after a failed context push.\n\n## Steps to reproduce\n\n1. Create a Flask application.\n2. Connect a receiver to the `appcontext_pushed` signal.\n3. Make the receiver raise a `RuntimeError`.\n4. Attempt to enter the application context.\n5. Check `flask.has_app_context()` after catching the exception.\n\n## Minimal reproducible example\n\n```python\nimport flask\n\napp = flask.Flask(__name__)\n\ndef fail(sender, **kwargs):\n    raise RuntimeError(\"signal failed\")\n\nflask.appcontext_pushed.connect(fail, app, weak=False)\n\ntry:\n    with app.app_context():\n        pass\nexcept RuntimeError as e:\n    print(\"Caught:\", e)\n\nprint(\"Context active:\", flask.has_app_context())\n```\n\n## Actual behavior\n\n```text\nCaught: signal failed\nContext active: True\n```\n\nThe application context remains active even though entering the context failed.\n\n## Expected behavior\n\nIf `AppContext.push()` fails because an `appcontext_pushed` receiver raises an exception, the partially established context should be cleaned up so that it does not remain active.\n\n## Environment\n\n- Python: 3.13.2\n- Flask: 3.2.0.dev0 (development checkout)\n- Operating system: Windows\n- pytest: 9.2.0\n\n## Test results\n\nThe full test suite produced:\n\n- 494 passed\n- 1 failed\n\nThe failing regression test is `test_appcontext_pushed_signal_error_does_not_leak_context`, which fails because `flask.has_app_context()` returns `True` after the signal receiver raises an exception.\n",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6182/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6182/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6180",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6180/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6180/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6180/events",
    "html_url": "https://github.com/pallets/flask/issues/6180",
    "id": 6205128859,
    "node_id": "I_kwDOAAkbnM8AAAABcdrAmw",
    "number": 6180,
    "title": "Unused _sentinel definition in src/flask/sansio/scaffold.py",
    "user": {
      "login": "banwelld",
      "id": 159229350,
      "node_id": "U_kgDOCX2lpg",
      "avatar_url": "https://avatars.githubusercontent.com/u/159229350?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/banwelld",
      "html_url": "https://github.com/banwelld",
      "followers_url": "https://api.github.com/users/banwelld/followers",
      "following_url": "https://api.github.com/users/banwelld/following{/other_user}",
      "gists_url": "https://api.github.com/users/banwelld/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/banwelld/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/banwelld/subscriptions",
      "organizations_url": "https://api.github.com/users/banwelld/orgs",
      "repos_url": "https://api.github.com/users/banwelld/repos",
      "events_url": "https://api.github.com/users/banwelld/events{/privacy}",
      "received_events_url": "https://api.github.com/users/banwelld/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-11-04T14:49:43Z",
    "updated_at": "2026-11-19T00:07:54Z",
    "closed_at": "2026-11-04T15:34:24Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "In `src/flask/sansio/scaffold.py` (lines 32–33), `_sentinel` is defined:\n\n```python\n# a singleton sentinel value for parameter defaults\n_sentinel = object()\n```\n\nA search across the repository confirms that `_sentinel` is never referenced or imported anywhere else in Flask.\n\nI have a branch ready with the fix on my fork (`banwelld/flask:remove-unused-sentinel`). Would you like me to open a PR, or would a maintainer prefer to remove it directly?\n",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6180/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6180/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6179",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6179/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6179/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6179/events",
    "html_url": "https://github.com/pallets/flask/issues/6179",
    "id": 6202751165,
    "node_id": "I_kwDOAAkbnM8AAAABcbZ4vQ",
    "number": 6179,
    "title": "[rejected AI] `flask run --port` accepts out-of-range ports without validation",
    "user": {
      "login": "swastiktawate",
      "id": 293572503,
      "node_id": "U_kgDOEX-Plw",
      "avatar_url": "https://avatars.githubusercontent.com/u/293572503?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/swastiktawate",
      "html_url": "https://github.com/swastiktawate",
      "followers_url": "https://api.github.com/users/swastiktawate/followers",
      "following_url": "https://api.github.com/users/swastiktawate/following{/other_user}",
      "gists_url": "https://api.github.com/users/swastiktawate/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/swastiktawate/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/swastiktawate/subscriptions",
      "organizations_url": "https://api.github.com/users/swastiktawate/orgs",
      "repos_url": "https://api.github.com/users/swastiktawate/repos",
      "events_url": "https://api.github.com/users/swastiktawate/events{/privacy}",
      "received_events_url": "https://api.github.com/users/swastiktawate/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-11-04T12:32:16Z",
    "updated_at": "2026-11-19T00:07:55Z",
    "closed_at": "2026-11-04T14:16:16Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "## Description\n\nThe `--port` option for `flask run` accepts any integer with no range validation, leading to confusing behavior:\n\n1. `--port -1` crashes with a raw `OverflowError` traceback instead of a clean usage error\n2. `--port 99999` silently starts the server on port 34463 (the OS wraps the value) with zero warning\n\n## Steps to reproduce\n\n```bash\nflask run --port -1\n# Results in: OverflowError traceback\n\nflask run --port 99999\n# Results in: \"Running on http://127.0.0.1:34463\" (wrong port, no warning)\n```\n\n## Expected behavior\n\nInvalid ports should be rejected with a clean usage error. Port 0 should remain allowed (it means \"pick any free port\").\n\n## Location\n\n`src/flask/cli.py`, the `--port` option is declared with `default=5000` and no type or range check.\n\n## Suggested fix\n\nUse `type=click.IntRange(0, 65535)` on the option so click rejects out-of-range values with a proper usage error.",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6179/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6179/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6178",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6178/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6178/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6178/events",
    "html_url": "https://github.com/pallets/flask/issues/6178",
    "id": 6141629832,
    "node_id": "I_kwDOAAkbnM8AAAABbhHViA",
    "number": 6178,
    "title": "test_werkzeug_passthrough_errors records passthrough_errors but never asserts on it",
    "user": {
      "login": "jeffev",
      "id": 8512925,
      "node_id": "MDQ6VXNlcjg1MTI5MjU=",
      "avatar_url": "https://avatars.githubusercontent.com/u/8512925?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/jeffev",
      "html_url": "https://github.com/jeffev",
      "followers_url": "https://api.github.com/users/jeffev/followers",
      "following_url": "https://api.github.com/users/jeffev/following{/other_user}",
      "gists_url": "https://api.github.com/users/jeffev/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/jeffev/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/jeffev/subscriptions",
      "organizations_url": "https://api.github.com/users/jeffev/orgs",
      "repos_url": "https://api.github.com/users/jeffev/repos",
      "events_url": "https://api.github.com/users/jeffev/events{/privacy}",
      "received_events_url": "https://api.github.com/users/jeffev/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-11-01T00:49:38Z",
    "updated_at": "2026-11-16T00:09:27Z",
    "closed_at": "2026-11-01T01:49:47Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "`tests/test_basic.py::test_werkzeug_passthrough_errors` mocks `werkzeug.serving.run_simple` and stores `kwargs.get(\"passthrough_errors\")` in `rv`, but nothing reads `rv` afterwards. Across its 24 parametrized cases it only checks that `app.run()` doesn't raise.\n\nAs far as I can see, `Flask.run` no longer sets `passthrough_errors` itself (it passes `**options` through), so the original assertion may have been dropped when that logic was removed. Should the test assert that `passthrough_errors` is not set unless the caller passes it (and that it's forwarded when they do), or be removed? I can send a PR for whichever you prefer.\n\n(Found with [hollowtest](https://github.com/jeffev/hollowtest), a checker for tests that cannot fail.)\n",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6178/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6178/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6177",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6177/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6177/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6177/events",
    "html_url": "https://github.com/pallets/flask/issues/6177",
    "id": 6136370759,
    "node_id": "I_kwDOAAkbnM8AAAABbcGWRw",
    "number": 6177,
    "title": "[rejected AI] Config.from_prefixed_env raises TypeError when scalar and nested environment variables share a prefix",
    "user": {
      "login": "cherry2326g-arch",
      "id": 274036062,
      "node_id": "U_kgDOEFV1Xg",
      "avatar_url": "https://avatars.githubusercontent.com/u/274036062?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/cherry2326g-arch",
      "html_url": "https://github.com/cherry2326g-arch",
      "followers_url": "https://api.github.com/users/cherry2326g-arch/followers",
      "following_url": "https://api.github.com/users/cherry2326g-arch/following{/other_user}",
      "gists_url": "https://api.github.com/users/cherry2326g-arch/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/cherry2326g-arch/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/cherry2326g-arch/subscriptions",
      "organizations_url": "https://api.github.com/users/cherry2326g-arch/orgs",
      "repos_url": "https://api.github.com/users/cherry2326g-arch/repos",
      "events_url": "https://api.github.com/users/cherry2326g-arch/events{/privacy}",
      "received_events_url": "https://api.github.com/users/cherry2326g-arch/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-10-31T15:10:18Z",
    "updated_at": "2026-11-15T00:08:56Z",
    "closed_at": "2026-10-31T15:20:27Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "### Describe the bug\n\n`Config.from_prefixed_env()` raises an unhandled `TypeError` when environment variables contain both a scalar configuration key and a nested configuration key sharing the same prefix.\n\nThe method supports nested configuration using double underscores (`__`). However, when a scalar key is processed first, the nested key attempts to assign into that scalar value instead of a dictionary, causing the method to crash.\n\n### To reproduce\n\n```python\nimport os\nfrom flask import Config\n\nconfig = Config(root_path=\".\")\n\nos.environ[\"FLASK_TEST\"] = \"hello\"\nos.environ[\"FLASK_TEST__INNER\"] = \"world\"\n\nconfig.from_prefixed_env(\"FLASK\")\n```\n\n### Expected behavior\n\nThe configuration loader should handle conflicting scalar and nested keys gracefully, either by resolving the conflict consistently or raising a clear, intentional configuration error.\n\n### Actual behavior\n\nThe method raises an unhandled exception:\n\n```text\nTypeError: 'str' object does not support item assignment\n```\n\nThe exception occurs at:\n\n```python\ncurrent[tail] = value\n```\n\nin `src/flask/config.py`, inside `Config.from_prefixed_env()`.\n\n### Environment\n\n- Flask: 3.2.0.dev0 (local development checkout)\n- Python: 3.12.10\n- Operating system: Windows\n\n### Additional evidence\n\nThe issue was reproduced using a minimal standalone Python script. The full Flask test suite passes (491 passed, 3 skipped), indicating that this edge case is not currently covered by the existing tests.",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6177/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6177/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6176",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6176/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6176/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6176/events",
    "html_url": "https://github.com/pallets/flask/pull/6176",
    "id": 6121570845,
    "node_id": "PR_kwDOAAkbnM8AAAABLy1S8w",
    "number": 6176,
    "title": "add `versionchanged` for ctx signature change",
    "user": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": {
      "url": "https://api.github.com/repos/pallets/flask/milestones/37",
      "html_url": "https://github.com/pallets/flask/milestone/37",
      "labels_url": "https://api.github.com/repos/pallets/flask/milestones/37/labels",
      "id": 11942944,
      "node_id": "MI_kwDOAAkbnM4Atjwg",
      "number": 37,
      "title": "3.2.0",
      "description": "",
      "creator": {
        "login": "davidism",
        "id": 1242887,
        "node_id": "MDQ6VXNlcjEyNDI4ODc=",
        "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/davidism",
        "html_url": "https://github.com/davidism",
        "followers_url": "https://api.github.com/users/davidism/followers",
        "following_url": "https://api.github.com/users/davidism/following{/other_user}",
        "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
        "organizations_url": "https://api.github.com/users/davidism/orgs",
        "repos_url": "https://api.github.com/users/davidism/repos",
        "events_url": "https://api.github.com/users/davidism/events{/privacy}",
        "received_events_url": "https://api.github.com/users/davidism/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "open_issues": 1,
      "closed_issues": 22,
      "state": "open",
      "created_at": "2024-11-23T23:43:03Z",
      "updated_at": "2026-10-30T15:05:21Z",
      "due_on": null,
      "closed_at": null
    },
    "comments": 0,
    "created_at": "2026-10-30T15:04:26Z",
    "updated_at": "2026-11-14T00:07:26Z",
    "closed_at": "2026-10-30T15:05:21Z",
    "assignee": null,
    "author_association": "MEMBER",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "draft": false,
    "pull_request": {
      "url": "https://api.github.com/repos/pallets/flask/pulls/6176",
      "html_url": "https://github.com/pallets/flask/pull/6176",
      "diff_url": "https://github.com/pallets/flask/pull/6176.diff",
      "patch_url": "https://github.com/pallets/flask/pull/6176.patch",
      "merged_at": "2026-10-30T15:05:21Z"
    },
    "body": "Update the docstrings with a `versionchanged` marker.",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6176/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6176/timeline",
    "performed_via_github_app": null,
    "state_reason": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6175",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6175/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6175/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6175/events",
    "html_url": "https://github.com/pallets/flask/issues/6175",
    "id": 6058362036,
    "node_id": "I_kwDOAAkbnM8AAAABaRtEtA",
    "number": 6175,
    "title": "[rejected AI] Error handling docs examples use `request.arg` instead of `request.args`",
    "user": {
      "login": "Mukhametvaleev",
      "id": 8947056,
      "node_id": "MDQ6VXNlcjg5NDcwNTY=",
      "avatar_url": "https://avatars.githubusercontent.com/u/8947056?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Mukhametvaleev",
      "html_url": "https://github.com/Mukhametvaleev",
      "followers_url": "https://api.github.com/users/Mukhametvaleev/followers",
      "following_url": "https://api.github.com/users/Mukhametvaleev/following{/other_user}",
      "gists_url": "https://api.github.com/users/Mukhametvaleev/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Mukhametvaleev/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Mukhametvaleev/subscriptions",
      "organizations_url": "https://api.github.com/users/Mukhametvaleev/orgs",
      "repos_url": "https://api.github.com/users/Mukhametvaleev/repos",
      "events_url": "https://api.github.com/users/Mukhametvaleev/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Mukhametvaleev/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 0,
    "created_at": "2026-10-27T11:33:34Z",
    "updated_at": "2026-11-11T00:07:49Z",
    "closed_at": "2026-10-27T13:44:38Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "Two code examples in [docs/errorhandling.rst](https://github.com/pallets/flask/blob/main/docs/errorhandling.rst) don't work as written:\n\n- def user_api(user_id): takes a `user_id` argument, but the route `/api/user` has no URL variable, so Flask raises `TypeError` when the view is called. The parameter should be removed, the value comes from the query string\n- The `user_profile` and `user_api` examples call request.arg.get(...). Request has no `arg` attribute, so this raises `AttributeError`. It should be `request.args`\n\nA fix is on my fork: [https://github.com/Mukhametvaleev/flask/commit/ab25c54b](https://github.com/Mukhametvaleev/flask/commit/ab25c54b)\n",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6175/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6175/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6174",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6174/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6174/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6174/events",
    "html_url": "https://github.com/pallets/flask/issues/6174",
    "id": 6038541125,
    "node_id": "I_kwDOAAkbnM8AAAABZ-zTRQ",
    "number": 6174,
    "title": "[rejected AI] `flask run --cert` mishandles mixed-case certificate values",
    "user": {
      "login": "sangameshh31",
      "id": 203831827,
      "node_id": "U_kgDODCY6Ew",
      "avatar_url": "https://avatars.githubusercontent.com/u/203831827?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/sangameshh31",
      "html_url": "https://github.com/sangameshh31",
      "followers_url": "https://api.github.com/users/sangameshh31/followers",
      "following_url": "https://api.github.com/users/sangameshh31/following{/other_user}",
      "gists_url": "https://api.github.com/users/sangameshh31/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/sangameshh31/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/sangameshh31/subscriptions",
      "organizations_url": "https://api.github.com/users/sangameshh31/orgs",
      "repos_url": "https://api.github.com/users/sangameshh31/repos",
      "events_url": "https://api.github.com/users/sangameshh31/events{/privacy}",
      "received_events_url": "https://api.github.com/users/sangameshh31/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-10-26T11:13:29Z",
    "updated_at": "2026-11-10T00:07:23Z",
    "closed_at": "2026-10-26T13:35:29Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "## Description\n\nI observed unexpected behavior when using mixed-case certificate values with Flask's `flask run --cert` option.\n\nI am investigating whether certificate values are handled consistently with respect to letter case.\n\n## Steps to reproduce\n\nThe minimal reproduction and exact commands need to be added here from the verified test.\n\n## Expected behavior\n\nCertificate values should be handled consistently with the documented CLI behavior.\n\n## Actual behavior\n\nThe observed behavior differs for mixed-case input. The exact command output and traceback, if any, should be included here.\n\n## Control cases\n\nThe investigation includes three control cases, including the intended `adhoc` behavior.\n\nNote: The `cryptography` dependency was stubbed for the `adhoc` control case.\n\n## Environment\n\n* Flask version: `3.2.0.dev`\n* Flask commit: `d086db856be187255b8ec61ef409357393020f32`\n* Python version: Add the exact version used for this reproduction.\n",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6174/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6174/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6172",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6172/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6172/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6172/events",
    "html_url": "https://github.com/pallets/flask/issues/6172",
    "id": 5912728493,
    "node_id": "I_kwDOAAkbnM8AAAABYG0TrQ",
    "number": 6172,
    "title": "3.2: update_template_context is missing from the subclass shim",
    "user": {
      "login": "Jalkhov",
      "id": 36505934,
      "node_id": "MDQ6VXNlcjM2NTA1OTM0",
      "avatar_url": "https://avatars.githubusercontent.com/u/36505934?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Jalkhov",
      "html_url": "https://github.com/Jalkhov",
      "followers_url": "https://api.github.com/users/Jalkhov/followers",
      "following_url": "https://api.github.com/users/Jalkhov/following{/other_user}",
      "gists_url": "https://api.github.com/users/Jalkhov/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Jalkhov/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Jalkhov/subscriptions",
      "organizations_url": "https://api.github.com/users/Jalkhov/orgs",
      "repos_url": "https://api.github.com/users/Jalkhov/repos",
      "events_url": "https://api.github.com/users/Jalkhov/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Jalkhov/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 2,
    "created_at": "2026-10-18T18:28:31Z",
    "updated_at": "2026-11-02T00:08:16Z",
    "closed_at": "2026-10-18T19:03:12Z",
    "assignee": null,
    "author_association": "CONTRIBUTOR",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "Environment:\n\n- Python version: 3.14.4\n- Flask version: 3.2.0.dev0 (commit d086db8)\n\nThe 3.2 changelog says:\n\n> Many ``Flask`` methods involved in request dispatch now take the current\n> ``AppContext`` as the first parameter. If subclasses were overriding these\n> methods, the old signature is detected, shows a deprecation warning, and will\n> continue to work during the deprecation period.\n\nAs far as I can tell `update_template_context` isn't covered by that. Its\nsignature did change:\n\n- 3.1.3: `def update_template_context(self, context: dict[str, t.Any]) -> None:`\n- main: `def update_template_context(self, ctx: AppContext, context: dict[str, t.Any]) -> None:`\n\nand `templating.py` now calls `app.update_template_context(ctx, context)`. But\nthe tuple in `Flask.__init_subclass__` (app.py, around line 258) has 12 methods\nin it and `update_template_context` isn't one of them. The list you posted on\n#5815 has 13, so I'm guessing it just got missed.\n\nSo a subclass that overrides it the old way gets no warning and no wrapping:\n\n```python\nfrom flask import Flask, render_template_string\n\n\nclass App(Flask):\n    def update_template_context(self, context):\n        context[\"x\"] = \"y\"\n\n\napp = App(__name__)\n\n\n@app.route(\"/\")\ndef index():\n    return render_template_string(\"{{ x }}\")\n\n\napp.test_client().get(\"/\")\n```\n\n```\n  File \"flask/templating.py\", line 125, in _render\n    app.update_template_context(ctx, context)\nTypeError: App.update_template_context() takes 2 positional arguments but 3 were given\n```\n\nThe request comes back as a 500 and no DeprecationWarning is raised. The same\ncode returns 200 on 3.1.3.\n\nOne other thing I ran into while testing this, which is probably worth its own\nissue: overrides that do use the new signature but don't spell it exactly the\nway the check expects are picked up as the old signature instead. Renaming the\nparameter (`def dispatch_request(self, context)`) or annotating it as\n`ctx: AppContext | None` makes the ctx argument get stripped, so those fail\nwith a TypeError as well. Same with `finalize_request` annotated\n`typing.Optional[AppContext]`. Happy to file that separately if you'd rather.\n",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6172/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6172/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6171",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6171/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6171/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6171/events",
    "html_url": "https://github.com/pallets/flask/issues/6171",
    "id": 5882410251,
    "node_id": "I_kwDOAAkbnM8AAAABXp51Cw",
    "number": 6171,
    "title": "[rejected AI] `register_blueprint()` silently ignores the host option",
    "user": {
      "login": "Lenormju",
      "id": 13200639,
      "node_id": "MDQ6VXNlcjEzMjAwNjM5",
      "avatar_url": "https://avatars.githubusercontent.com/u/13200639?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Lenormju",
      "html_url": "https://github.com/Lenormju",
      "followers_url": "https://api.github.com/users/Lenormju/followers",
      "following_url": "https://api.github.com/users/Lenormju/following{/other_user}",
      "gists_url": "https://api.github.com/users/Lenormju/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Lenormju/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Lenormju/subscriptions",
      "organizations_url": "https://api.github.com/users/Lenormju/orgs",
      "repos_url": "https://api.github.com/users/Lenormju/repos",
      "events_url": "https://api.github.com/users/Lenormju/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Lenormju/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 2,
    "created_at": "2026-10-16T10:17:45Z",
    "updated_at": "2026-11-05T00:07:49Z",
    "closed_at": "2026-10-16T12:14:05Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "`app.register_blueprint(bp, host=\"a.localhost\")` doesn't error and doesn't do anything, because the `host` kwarg goes into `**options` and is never read, so every rule of the blueprint is registered hostless.\nI checked `flask/(sansio)/blueprints.py` in 2.3.3, 3.1.3 and current `main`: `host` has never been read on that path, in any release. It just does not exist for blueprints themselves.\n\nDepending on the app config this fails in two opposite ways, both silent.\n\n```python\nimport flask\n\na_bp = flask.Blueprint(\"a_bp\", __name__)\nb_bp = flask.Blueprint(\"b_bp\", __name__)\n\n\n@a_bp.route(\"/\")\ndef a_home():\n    return \"a_bp view: meant for a.localhost only\"\n\n\n@b_bp.route(\"/\")\ndef b_home():\n    return \"b_bp view: meant for b.localhost only\"\n\n\ndef probe(app):\n    client = app.test_client()\n    for host in (\"a.localhost\", \"b.localhost\", \"evil.example\"):\n        r = client.get(\"/\", headers={\"Host\": host})\n        body = repr(r.get_data(as_text=True)) if r.status_code == 200 else \"\"\n        print(f\"GET /  Host: {host:14} -> {r.status_code} {body}\")\n\n\napp = flask.Flask(__name__, static_folder=None)\napp.register_blueprint(a_bp, host=\"a.localhost\")\napp.register_blueprint(b_bp, host=\"b.localhost\")\n\nhost_matched = flask.Flask(__name__, host_matching=True, static_folder=None)\nhost_matched.register_blueprint(a_bp, host=\"a.localhost\")\nhost_matched.register_blueprint(b_bp, host=\"b.localhost\")\n\nprint(\"=== host_matching=False (default) ===\")\nprobe(app)\nprint(\"=== host_matching=True ===\")\nprobe(host_matched)\n```\n\nOutput, Flask 3.1.3 / Werkzeug 3.1.8 / Python 3.12:\n\n```\n=== host_matching=False (default) ===\nGET /  Host: a.localhost    -> 200 'a_bp view: meant for a.localhost only'\nGET /  Host: b.localhost    -> 200 'a_bp view: meant for a.localhost only'\nGET /  Host: evil.example   -> 200 'a_bp view: meant for a.localhost only'\n=== host_matching=True ===\nGET /  Host: a.localhost    -> 404\nGET /  Host: b.localhost    -> 404\nGET /  Host: evil.example   -> 404\n```\n\nWith the default app the host isn't part of matching at all, so a_bp's hostless rule answers every hostname and b_bp is registered but unreachable. This is a cross-host leak with no error, no warning, and nothing for a type checker to catch, since `**options` accepts anything.\nWhile with `host_matching=True` it flips the other way: a hostless rule matches nothing, so everything 404s.\n\nFor contrast, `flask.Blueprint(\"a\", __name__, host=...)` does raise a `TypeError` because it accepts some kwargs but not `host` (since it has no **options catch-all).\n\nSome context: #5411 was closed as not planned on the basis that `register_blueprint(a_bp, host=...)` was the existing way to do this, and the example posted in reply there was never answered. Running that example is what led me here. I also posted a shorter version of this on discussion #5413 yesterday, which was removed when the discussion was closed. I'm sorry I revived a very old discussion, and that it was necessary to remove the comment. The point of it was to confirm that the report still reproduces and to contribute a tested example.\nI hope that opening this issue is the correct way to proceed now.\n\nAs for what to do about it: given how subtle the interaction between `SERVER_NAME`, `host_matching` and `subdomain_matching` has historically been (see for example #5553 and the fix in #5634), I can understand not wanting to grow that API surface.\nThe minimal fix would then be to reject `host` loudly in `BlueprintSetupState`, same as the constructor does.\n\nBut if honoring it is on the table instead, the gap it would fill is easy to state: having `host=` for blueprints too, not only route decorators. Today, pinning more than one route to a host means repeating `host=` on each of them (and not missing any), or subclassing. To me, the missing blueprint-level scope is a feature gap, but a documented per-route recipe would already be an improvement.\n\nEither way, the docs gap stands on its own: the blueprints page documents subdomains at blueprint scope but never says a word about hosts, which is part of why I thought `host=` was supported. I can contribute a recipe for pinning a blueprint to one host with today's API, something like this (simplified from what I run in production, together with `host_matching=True`):\n\n```python\nclass HostBlueprint(flask.Blueprint):\n    def __init__(self, *args, host: str, **kwargs):\n        super().__init__(*args, **kwargs)\n        self._host = host\n\n    def add_url_rule(self, rule, endpoint=None, view_func=None, **options):\n        options.setdefault(\"host\", self._host)\n        return super().add_url_rule(rule, endpoint, view_func, **options)\n```\n\nI can send a PR for whichever direction sounds right to you.\n\nEnvironment:\n\n- Python version: 3.13\n- Flask version: 3.1.3\n",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6171/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6171/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6170",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6170/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6170/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6170/events",
    "html_url": "https://github.com/pallets/flask/issues/6170",
    "id": 5858953678,
    "node_id": "I_kwDOAAkbnM8AAAABXTiJzg",
    "number": 6170,
    "title": "[rejected AI] Document the Flask 3.2 app.query route shortcut",
    "user": {
      "login": "hossiendehghan989",
      "id": 186807511,
      "node_id": "U_kgDOCyJ01w",
      "avatar_url": "https://avatars.githubusercontent.com/u/186807511?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/hossiendehghan989",
      "html_url": "https://github.com/hossiendehghan989",
      "followers_url": "https://api.github.com/users/hossiendehghan989/followers",
      "following_url": "https://api.github.com/users/hossiendehghan989/following{/other_user}",
      "gists_url": "https://api.github.com/users/hossiendehghan989/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/hossiendehghan989/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/hossiendehghan989/subscriptions",
      "organizations_url": "https://api.github.com/users/hossiendehghan989/orgs",
      "repos_url": "https://api.github.com/users/hossiendehghan989/repos",
      "events_url": "https://api.github.com/users/hossiendehghan989/events{/privacy}",
      "received_events_url": "https://api.github.com/users/hossiendehghan989/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 12017340207,
        "node_id": "LA_kwDOAAkbnM8AAAACzEoPLw",
        "url": "https://api.github.com/repos/pallets/flask/labels/rejected%20AI",
        "name": "rejected AI",
        "color": "7F8AA0",
        "default": false,
        "description": "",
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 1,
    "created_at": "2026-10-15T02:21:07Z",
    "updated_at": "2026-10-30T00:09:38Z",
    "closed_at": "2026-10-15T03:29:51Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "## Documentation gap: `app.query` route shortcut\n\nFlask 3.2 adds the `app.query` route shortcut, and it is already listed in the 3.2 changelog. However, the routing documentation currently describes the older method shortcuts without documenting `query` or showing how to test a `QUERY` request.\n\nI prepared a documentation-only change that:\n\n- documents the complete method-shortcut family;\n- \n- explains automatic `HEAD` and `OPTIONS` handling;\n- \n- documents the `QUERY` shortcut;\n- \n- shows how to test it with `client.open(..., method=\"QUERY\")`.\n- \n\nThe change is available here:\n\n- Commit: https://github.com/hossiendehghan989/flask/commit/499b9a37a598e42d727b0ff03281e1101784c8c9\n- \n- Comparison: https://github.com/pallets/flask/compare/main...hossiendehghan989:docs/document-query-route-shortcut\n- \n\nThe documentation build passes with `sphinx-build -E -W`.\n\nGitHub currently prevents non-collaborators from opening pull requests in this repository. If this documentation update is useful, could a maintainer either enable pull requests for this contribution or open the PR from the prepared branch?",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6170/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6170/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6168",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6168/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6168/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6168/events",
    "html_url": "https://github.com/pallets/flask/pull/6168",
    "id": 5746088062,
    "node_id": "PR_kwDOAAkbnM8AAAABHIdKMQ",
    "number": 6168,
    "title": "drop support for Python 3.10",
    "user": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": {
      "url": "https://api.github.com/repos/pallets/flask/milestones/37",
      "html_url": "https://github.com/pallets/flask/milestone/37",
      "labels_url": "https://api.github.com/repos/pallets/flask/milestones/37/labels",
      "id": 11942944,
      "node_id": "MI_kwDOAAkbnM4Atjwg",
      "number": 37,
      "title": "3.2.0",
      "description": "",
      "creator": {
        "login": "davidism",
        "id": 1242887,
        "node_id": "MDQ6VXNlcjEyNDI4ODc=",
        "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/davidism",
        "html_url": "https://github.com/davidism",
        "followers_url": "https://api.github.com/users/davidism/followers",
        "following_url": "https://api.github.com/users/davidism/following{/other_user}",
        "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
        "organizations_url": "https://api.github.com/users/davidism/orgs",
        "repos_url": "https://api.github.com/users/davidism/repos",
        "events_url": "https://api.github.com/users/davidism/events{/privacy}",
        "received_events_url": "https://api.github.com/users/davidism/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "open_issues": 1,
      "closed_issues": 22,
      "state": "open",
      "created_at": "2024-11-23T23:43:03Z",
      "updated_at": "2026-10-30T15:05:21Z",
      "due_on": null,
      "closed_at": null
    },
    "comments": 0,
    "created_at": "2026-10-07T13:48:01Z",
    "updated_at": "2026-10-22T00:11:19Z",
    "closed_at": "2026-10-07T13:56:06Z",
    "assignee": null,
    "author_association": "MEMBER",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "draft": false,
    "pull_request": {
      "url": "https://api.github.com/repos/pallets/flask/pulls/6168",
      "html_url": "https://github.com/pallets/flask/pull/6168",
      "diff_url": "https://github.com/pallets/flask/pull/6168.diff",
      "patch_url": "https://github.com/pallets/flask/pull/6168.patch",
      "merged_at": "2026-10-07T13:56:06Z"
    },
    "body": "3.10 is EOL within six months of feature release. https://devguide.python.org/versions/\r\nhttps://palletsprojects.com/versions",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6168/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6168/timeline",
    "performed_via_github_app": null,
    "state_reason": null
  },
  {
    "url": "https://api.github.com/repos/pallets/flask/issues/6165",
    "repository_url": "https://api.github.com/repos/pallets/flask",
    "labels_url": "https://api.github.com/repos/pallets/flask/issues/6165/labels{/name}",
    "comments_url": "https://api.github.com/repos/pallets/flask/issues/6165/comments",
    "events_url": "https://api.github.com/repos/pallets/flask/issues/6165/events",
    "html_url": "https://github.com/pallets/flask/issues/6165",
    "id": 5575479096,
    "node_id": "I_kwDOAAkbnM8AAAABTFMPOA",
    "number": 6165,
    "title": "update docs for `MAX_CONTENT_LENGTH`",
    "user": {
      "login": "Meterel",
      "id": 114000274,
      "node_id": "U_kgDOBsuBkg",
      "avatar_url": "https://avatars.githubusercontent.com/u/114000274?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Meterel",
      "html_url": "https://github.com/Meterel",
      "followers_url": "https://api.github.com/users/Meterel/followers",
      "following_url": "https://api.github.com/users/Meterel/following{/other_user}",
      "gists_url": "https://api.github.com/users/Meterel/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Meterel/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Meterel/subscriptions",
      "organizations_url": "https://api.github.com/users/Meterel/orgs",
      "repos_url": "https://api.github.com/users/Meterel/repos",
      "events_url": "https://api.github.com/users/Meterel/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Meterel/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "labels": [
      {
        "id": 32876,
        "node_id": "MDU6TGFiZWwzMjg3Ng==",
        "url": "https://api.github.com/repos/pallets/flask/labels/docs",
        "name": "docs",
        "color": "0e8a16",
        "default": false,
        "description": null,
        "archived_at": null,
        "archived_by": null
      }
    ],
    "state": "closed",
    "locked": true,
    "assignees": [],
    "milestone": null,
    "comments": 3,
    "created_at": "2026-09-24T22:41:33Z",
    "updated_at": "2026-09-25T21:19:03Z",
    "closed_at": "2026-09-24T22:56:18Z",
    "assignee": null,
    "author_association": "NONE",
    "issue_field_values": [],
    "type": null,
    "active_lock_reason": "resolved",
    "sub_issues_summary": {
      "total": 0,
      "completed": 0,
      "percent_completed": 0
    },
    "issue_dependencies_summary": {
      "blocked_by": 0,
      "total_blocked_by": 0,
      "blocking": 0,
      "total_blocking": 0
    },
    "body": "Clarify [MAX_CONTENT_LENGTH](https://flask.palletsprojects.com/en/stable/config/#MAX_CONTENT_LENGTH) should be avoided in the docs in favor of setting the limit on the server just like [its written in the Werkzeug docs](https://werkzeug.palletsprojects.com/en/stable/request_data/#limiting-request-data).\n\nI have this Flask app with Waitress as the production server and MAX_CONTENT_LENGTH set to 10 bytes\n```python\nfrom flask import Flask,request\nfrom waitress import serve\n\napp=Flask(__name__)\napp.config[\"MAX_CONTENT_LENGTH\"]=10\n\n@app.post(\"/\")\ndef index():\n    print(request.get_data())\n    return \"OK\"\n\nserve(app,listen=\"localhost:8000\")\n```\nand this client to send data to it until the connection is closed\n```python\nfrom urllib.request import urlopen\nfrom random import randbytes\n\nbytes_sent=0\nchunk_size=10_000_000\ndef stream():\n    global bytes_sent\n\n    while True:\n        yield randbytes(chunk_size)\n        bytes_sent+=chunk_size\n\ntry:\n    urlopen(\"http://localhost:8000/\",stream())\nexcept Exception as e:\n    print(e)\nprint(f\"sent around {bytes_sent} bytes\")\n```\nand the app kept receiving and writing the request to disk way over 10 bytes until it hit Waitress's max_request_body_size limit that defaults to 1Gib, with the client printing\n```\n<urlopen error [WinError 10054] ...>\nsent around 1080000000 bytes\n```\n\nEnvironment:\n\n- Python version: 3.13.7\n- Flask version: 3.1.3",
    "closed_by": {
      "login": "davidism",
      "id": 1242887,
      "node_id": "MDQ6VXNlcjEyNDI4ODc=",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242887?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/davidism",
      "html_url": "https://github.com/davidism",
      "followers_url": "https://api.github.com/users/davidism/followers",
      "following_url": "https://api.github.com/users/davidism/following{/other_user}",
      "gists_url": "https://api.github.com/users/davidism/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/davidism/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/davidism/subscriptions",
      "organizations_url": "https://api.github.com/users/davidism/orgs",
      "repos_url": "https://api.github.com/users/davidism/repos",
      "events_url": "https://api.github.com/users/davidism/events{/privacy}",
      "received_events_url": "https://api.github.com/users/davidism/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "reactions": {
      "url": "https://api.github.com/repos/pallets/flask/issues/6165/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "timeline_url": "https://api.github.com/repos/pallets/flask/issues/6165/timeline",
    "performed_via_github_app": null,
    "state_reason": "not_planned",
    "pinned_comment": null
  }
]