The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix/fab-session-cookie-bytes-64921 has failed.
Run started by GitHub user Sriniketh24 (triggered by potiuk).

Head commit for run:
02104f970dc249292740450c5faa5f5e80d9906a / Sriniketh24 <[email protected]>
Fix securecookie session TypeError with Werkzeug 3.0+

Root cause: Werkzeug 3.0 removed automatic bytes-to-str coercion in
set_cookie(). When session_backend=securecookie, the itsdangerous
signing serializer may return bytes, causing a TypeError in
dump_cookie().

Fix: override save_session() in AirflowSecureCookieSessionInterface
to wrap response.set_cookie() with bytes-to-str coercion. The
database session serializer (_LazySafeSerializer) is left unchanged
since msgpack encoding is correct for LargeBinary columns.

closes: #64921

Authored with AI assistance (Claude Code).

Report URL: https://github.com/apache/airflow/actions/runs/26342729818

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to