We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To help us debug your issue fill in the basic information below using the options provided
Serverless Java Container version: com.amazonaws.serverless:aws-serverless-java-container-springboot3:2.0.0
com.amazonaws.serverless:aws-serverless-java-container-springboot3:2.0.0
Implementations: Spring Boot 3
Spring Boot 3
Framework version: eg SpringBoot3 2.0.0
eg SpringBoot3 2.0.0
Frontend service: REST API / ALB
REST API / ALB
Deployment method: SAM
SAM
When calling servletResponse.addCookie method with max-Age set to 0, cookies are not getting deleted.
Max-Age 0 is a valid value for cookies to expire immediately and a common way to delete cookies.
Cookies are being set to session cookies instead of getting deleted. Had to do a workaround to set max-Age to 1 and have it expire after 1 second.
Source code that causes this issue
I am running a project that cannot be shared on public github
The text was updated successfully, but these errors were encountered:
Thanks for the issue report. For stateless serverless web applications cookies are usually not being used but we can fix it anyway.
Are you willing to submit a PR to make the code more compliant with RFC 6265? Example implementation: https://github.com/apache/tomcat/blob/main/java/org/apache/tomcat/util/http/Rfc6265CookieProcessor.java#L106
Sorry, something went wrong.
@deki Would it be okay if I work on updating code to comply with RFC 6265 and submit a PR?
@2012160085 absolutely, contributions are always welcome!
Fixed as part of the 2.1.0 release.
leekib
No branches or pull requests
To help us debug your issue fill in the basic information below using the options provided
Serverless Java Container version:
com.amazonaws.serverless:aws-serverless-java-container-springboot3:2.0.0
Implementations:
Spring Boot 3
Framework version:
eg SpringBoot3 2.0.0
Frontend service:
REST API / ALB
Deployment method:
SAM
Scenario
When calling servletResponse.addCookie method with max-Age set to 0, cookies are not getting deleted.
Expected behavior
Max-Age 0 is a valid value for cookies to expire immediately and a common way to delete cookies.
Actual behavior
Cookies are being set to session cookies instead of getting deleted. Had to do a workaround to set max-Age to 1 and have it expire after 1 second.
Source code that causes this issue
Steps to reproduce
Full log output
I am running a project that cannot be shared on public github
The text was updated successfully, but these errors were encountered: