- Issue created by @cmlara
- ๐ฎ๐ณIndia anandhi karnan Chennai
anandhi karnan โ made their first commit to this issueโs fork.
- Merge request !9512Issue #3421234 Json and PHP serializers should throw exception on failure โ (Open) created by anandhi karnan
- ๐ฎ๐ณIndia anandhi karnan Chennai
I have updated the serializers to handle failure scenarios more robustly:
PHP Serializer (PhpSerialize):
- Added exception handling for unserialization errors.
- Incorporated the
allowed_classes
option to enhance security and prevent unserialization of objects.
JSON Serializer (Json):
- Implemented exception handling for JSON encoding and decoding, including handling invalid JSON and circular references.
Testing:
- Added tests to verify correct behavior for both valid and invalid inputs, covering various edge cases.
- Status changed to Needs review
12 days ago 4:51am 17 September 2024 - Status changed to Needs work
11 days ago 2:10pm 17 September 2024 - ๐บ๐ธUnited States smustgrave
This broke all the tests it seems.
Also made validation go down so that should be looked at.