-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix #8817 #8820 Improve CookieRequestCache #8818
New issue
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
Conversation
@majian159 thanks for the fix. I will look into it as well. The build is failing due to the tests. You have to update the tests as well of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @majian159 and thanks for the help @zeeshanadnan!
@majian159 Please also add tests for the bugs reported. This will ensure they do not show up again.
Thanks, i updated the unit test, if you can please help me review. |
I perfected unit tests, please check. |
Thanks @majian159 for taking the time and responsibility to fix this. Adding an extra test for cache in not removed by mistake for non matching request would be a good idea. What do you think? |
I added the unit test'notMatchingRequestWhenRequestNotContainsSavedRequestCookie' please check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add unit test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
complete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
complete
I perfected unit tests, please check. |
@majian159 Please rebase against the master branch. |
complete. @eleftherias |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @majian159! I have left some comments inline.
web/src/main/java/org/springframework/security/web/savedrequest/CookieRequestCache.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/savedrequest/CookieRequestCache.java
Outdated
Show resolved
Hide resolved
web/src/test/java/org/springframework/security/web/savedrequest/CookieRequestCacheTests.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/springframework/security/web/savedrequest/RequestCacheAwareFilterTests.java
Outdated
Show resolved
Hide resolved
Fix RequestCache throw exception and error redirect. Fix and improve CookieRequestCache unit tests. Add notMatchingRequestWhenRequestNotContainsSavedRequestCookie unit test.
I fixed these issues, please check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
complete
Thanks @majian159! This is now merged into master via 41f26b7 and fb936e2. |
fixes #8817 #8820