misc_pterodactyl-panel/app/Exceptions
Dane Everitt 114afb8646
Fix error transaction handling when creating a server.
There is a bug in the design of the application that affects users who encounter an exception under certain code pathways who are using the database to maintain their sessions.

What is happening is that a transaction is started, and I made the mistake of just assuming it would auto-rollback once the exception was caught by the handler. This is technically true, since once the request terminates the transaction is discarded by the SQL server. However, this also means that the session data set on that request would not be persisted as it runs in a middleware termination function, after the transaction is started.

Theoretically this would also affect any other terminable middleware as well, but the session is the only one I can think of right now

Co-Authored-By: Oreo Oreoniv <zkoz210@users.noreply.github.com>
Co-Authored-By: Stepan Fedotov <trixterthetux@users.noreply.github.com>
2019-03-02 18:28:28 -08:00
..
Http Finalize server management API 2018-01-30 20:36:59 -06:00
Model More work on the API utilizing Laravel 5.5 exception rendering 2017-12-17 14:57:05 -06:00
Repository More work on the API utilizing Laravel 5.5 exception rendering 2017-12-17 14:57:05 -06:00
Service Added validation to variable validation rules to validate that the validation rules are valid 2018-03-17 15:09:09 -05:00
Transformer Move everything around as needed to get things setup for the client API 2018-02-25 15:30:56 -06:00
AccountNotFoundException.php Update license headers on files. 2017-09-25 21:43:01 -05:00
AutoDeploymentException.php Update license headers on files. 2017-09-25 21:43:01 -05:00
DisplayException.php Change exception handling for display exception 2018-03-10 13:02:41 -06:00
Handler.php Fix error transaction handling when creating a server. 2019-03-02 18:28:28 -08:00
PterodactylException.php More work on the API utilizing Laravel 5.5 exception rendering 2017-12-17 14:57:05 -06:00