You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cookie class MaxAge produces invalid attribute, resulting to browser defaulting to session. #4730
When using the Cookie class from aws_lambda_powertools.shared.cookies the resulting Set-Cookie header when passed to the Response class will contain a cookie that has the attribute of Max-Age.
Current Behaviour
The Cookie class from aws_lambda_powertools.shared.cookies says it follows the RFC of https://tools.ietf.org/html/rfc6265, however when passing in the max_age argument, the final Set-Cookie string that is produced is MaxAge instead of Max-Age resulting in the browser defaulting to session length for the cookie expiration.
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
Hi @Connorcee! Thank you so much for reporting this bug. We must follow the RFC and MaxAge is actually wrong.
I sent a PullRequest to resolve this bug and we will release it tomorrow.
Activity
boring-cyborg commentedon Jul 10, 2024
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
leandrodamascena commentedon Jul 10, 2024
Hi @Connorcee! Thank you so much for reporting this bug. We must follow the RFC and
MaxAgeis actually wrong.I sent a PullRequest to resolve this bug and we will release it tomorrow.
github-actions commentedon Jul 11, 2024
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
github-actions commentedon Jul 11, 2024
This is now released under 2.41.0 version!