-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Backport 2.3] #11825: Generate new FormKey and replace for oldRequestParams Wishlist #12042
Conversation
@osrecio tests failed as this fix introduces dependency for PageCache on Customer module. We should avoid this for bugfixes. Also we should avoid this as Customer module already has a dependency on PageCashe module and we must avoid circular dependencies. As a solution, I may suggest make a plugin on \Magento\PageCache\Observer\FlushFormKey in a customer module |
63b9e78
to
a67e08d
Compare
Hi @vkublytskyi I added a Plugin in Customer Module to make the same logic. |
/** | ||
* @param FlushFormKey $subject | ||
* @param callable $proceed | ||
* @param $args |
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.
Please add @SuppressWarnings(PHPMD.UnusedFormalParameter)
to avoid static tests failure
6a7d8a0
to
107e375
Compare
107e375
to
247cfe6
Compare
|
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.
Unit test should be updated to fix issue with passed invalid argument. See #12038 (comment)
… replace for oldRequestParams Wishlist magento#12042 - fixed unit test
Thanks @vkublytskyi I was going to work on the changes this weekend. Busy Week |
…e for oldRequestParams Wishlist #12042
Generate new FormKey afterLogin and set to the beforeRequest(Wishlist)
Description
Generate new FormKey afterLogin and set to the beforeRequest(Wishlist)
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist