gavrik commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4253764456
I made the investigation and made the changes on flask/session.py library.
But I think this is not the place of the fix for airflow fab provider.
the fix in flask/session.py file
``` python
val = self.get_signing_serializer(app).dumps(dict(session)) # type:
ignore[union-attr]
print("# # # # # #")
print(__file__)
print(val)
print(str(val, encoding='utf-8'))
print("# # # # # #")
response.set_cookie(
name,
#val,
str(val, encoding='utf-8'),
expires=expires,
httponly=httponly,
domain=domain,
path=path,
secure=secure,
partitioned=partitioned,
samesite=samesite,
)
response.vary.add("Cookie")
```
The output in web server log
```shell
Apr 15 11:39:28 grafana-sandbox airflow[1710451]: # # # # # #
Apr 15 11:39:28 grafana-sandbox airflow[1710451]:
/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/sessions.py
Apr 15 11:39:28 grafana-sandbox airflow[1710451]:
b'hKpfcGVybWFuZW50w6pjc3JmX3Rva2Vu2Sg1ZTJjNGZhZDM0MjVlNzhmNWZhMjljNDQ4ZTVlNjNiZTEyYTI1YjgzpmxvY2FsZaJlbqZfZnJlc2jC.ad-xMA.-oR3pX72SQjYyyDhBNP3CAiFDAM'
Apr 15 11:39:28 grafana-sandbox airflow[1710451]:
hKpfcGVybWFuZW50w6pjc3JmX3Rva2Vu2Sg1ZTJjNGZhZDM0MjVlNzhmNWZhMjljNDQ4ZTVlNjNiZTEyYTI1YjgzpmxvY2FsZaJlbqZfZnJlc2jC.ad-xMA.-oR3pX72SQjYyyDhBNP3CAiFDAM
Apr 15 11:39:28 grafana-sandbox airflow[1710451]: # # # # # #
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]