You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All calls to Magento\Framework\Serialize\Serializer\Json::unserialize and serialize are not wrapped in a try-catch block
Module version: 1.0.32.
The magento Magento\Framework\Serialize\Serializer\Json::unserialize and serialize methods throw an \InvalidArgumentException exception if for some reason json_encode or json_decode fail.
The mailchimp module does not handle these errors, resulting in 2 problems:
the log gets filled with "unable to (un)serialize value" rows
Some actions that call one of the extention methods will fail. (this is the worst part).
This issue has been reported before, but only partially.
I'm adding below the list of all the unsafe calls to serialize / unserialize.
All calls to
Magento\Framework\Serialize\Serializer\Json::unserialize
andserialize
are not wrapped in atry-catch
blockModule version: 1.0.32.
The magento
Magento\Framework\Serialize\Serializer\Json::unserialize
andserialize
methods throw an\InvalidArgumentException
exception if for some reasonjson_encode
orjson_decode
fail.The mailchimp module does not handle these errors, resulting in 2 problems:
This issue has been reported before, but only partially.
I'm adding below the list of all the unsafe calls to
serialize / unserialize
.Serialize:
Unserialize:
The text was updated successfully, but these errors were encountered: