-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Backport 2.1] #11825: Generate new FormKey and replace for oldRequestParams Wishlist #12041
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
|
@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 |
|
Hi @vkublytskyi I added a Plugin in Customer Module to make the same logic. |
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
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 set copyright same as in other files for 2.1-develop:
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/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.
Changed by:
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
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 do not modify copyright.
f6843ae to
3b9e91b
Compare
|
@vkublytskyi Added param |
3b9e91b to
5368727
Compare
|
@osrecio please add following line to phpdoc block |
|
@osrecio I've pushed commit with fixed static test and backport of unit test. Please take a look to fix in unit test to solve an issue with an incorrect value passed to |
…e for oldRequestParams Wishlist #12041
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