Skip to content

Issue with unserialization of the stored record when using PDO storage and unencrypted session  #1335

@azgooon

Description

@azgooon

Hi,

I believe I came across the bug which can be reproduced when by disabling encryption of the session and using PDO as storage in laravel-debugbar. Precisely the issue occurs when I PUT the data to the controller and Requst Validator throws exception which also stores ErrorBag in the session. Debugbar saves collected data in the DB however when it comes to attempt of opening "past request" as soon as such record exists in the DB, debugar's AJAX request returns 500. After looking into the cause of the 500 error, I noticed that unserialization fails when unserializing session section following Illuminate\Support\ViewErrorBag part.

[2022-08-09 11:36:14] local.ERROR: unserialize(): Error at offset 3342 of 15746 bytes {"exception":"[object] (ErrorException(code: 0): unserialize(): Error at offset 3342 of 15746 bytes at /var/www/vendor/maximebf/debugbar/src/DebugBar/Storage/PdoStorage.php:106)

I am not sure if the issue should be raised in this project or https://github.com/maximebf/php-debugbar.
Please advise.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions