-
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
Encrypted scope-specific config values fail to decrypt on PHP7 #8591
Comments
@magento-team can we get an update on this? |
@okolesnyk i don't like pinging people by name for attention or anything but this has been more than 3 months and we haven't even gotten an acknowledgment, this issue breaks paypal on multistore without workarounds, have you guys had a chance to even glance at this issue yet? |
@zack6849 , thank you for your report. Please provide more detailed steps to reproduce. |
This is with the PayFlow methods, not express checkout. |
@zack6849 Thanks for the feedback. |
@zack6849, thank you for your report. |
Glad to hear you guys were able to reproduce it. |
Based on GitHub: magento/magento2#8591 Decryption on config values shouldn't be a step by default. However on some PHP7 / Magento version mixes, this decryption doesn't happen by default. Expanded code so that the decryption only happens, if the access token string doesn't look valid. We'll try to get around Magento verification if possible, to get rid of encryption entirely. Fix for the non-decryption is pending in Magento 2.2.X. magento/magento2@476036d
Based on GitHub: magento/magento2#8591 Decryption on config values shouldn't be a step by default. However on some PHP7 / Magento version mixes, this decryption doesn't happen by default. Expanded code so that the decryption only happens, if the access token string doesn't look valid. We'll try to get around Magento verification if possible, to get rid of encryption entirely. Fix for the non-decryption is pending in Magento 2.2.X. magento/magento2@476036d - also moved over getCfg wrapper for easier config access.
Fixed issues: MAGETWO-83646: Encrypted scope-specific config values fail to decrypt on PHP7 #8591 MAGETWO-85030: Integration test: fix an order into Magento\Catalog\Model\CategoryTreeTest::testGetChildren()
Hi @zack6849 Thank you for reporting. |
It seems that scope based config fails to decrypt data on anything but the default store
We first noticed this when all of our stores apart from the default one failed to process paypal transactions. After further editing of the code so that we could actually see the username and password information being sent to paypal, we discovered the username field is blank, and the password field is garbled garbage data, which leads me to assume it's failed decryption.
I thought it might've just been leaving it encrypted, so i edited the code and told it to decrypt the already supposedly decrypted value, to no avail, so as of now it seems that PayPal on multi-store setups running 2.1.4 on PHP7 won't function (assuming that the PayPal account details are different than the default store, of course)
We couldn't find anything about others having this issue via google, which was quite surprising to me, so if you need any more information please don't hesitate to ask
Preconditions
Steps to reproduce
Expected result
Actual result
This issue feels quite similar to issues #2984 and #3305
The text was updated successfully, but these errors were encountered: