misc_pterodactyl-panel/app
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
..
Console Fixes redis password saving, closes #1428 2019-03-02 15:38:46 -08:00
Contracts Paginate server results when viewing a node, closes #1404 2019-03-02 15:58:56 -08:00
Events Send an email when a server is marked as installed (#1213) 2018-07-01 14:34:40 -07:00
Exceptions Fix error transaction handling when creating a server. 2019-03-02 18:28:28 -08:00
Extensions Delete PhraseAppTranslator.php 2018-10-24 11:34:49 -04:00
Http Paginate server results when viewing a node, closes #1404 2019-03-02 15:58:56 -08:00
Jobs Changes to job running to clean up code 2018-09-03 14:04:25 -07:00
Models [#1500] Fix allocation limit being required even though it isn't used. 2019-03-02 14:27:01 -08:00
Notifications styleci tweaks 2018-10-13 21:30:47 -04:00
Observers close #840 2017-12-30 20:25:04 -06:00
Policies Merge branch 'develop' into feature/api-v1 2018-01-21 14:31:32 -06:00
Providers Delete PhraseAppTranslationProvider.php 2018-10-24 11:32:00 -04:00
Repositories Paginate server results when viewing a node, closes #1404 2019-03-02 15:58:56 -08:00
Rules Fix User model validation behavior, closes #950 2018-02-18 13:29:28 -06:00
Services Fix Node daemon secret not being reset, closes #1390 2018-12-02 13:40:12 -08:00
Traits Apply fixes from StyleCI 2018-06-02 21:32:26 +00:00
Transformers Update php doc blocks 2018-05-13 12:42:11 -04:00
helpers.php Apply fixes from StyleCI (#735) 2017-11-05 13:59:51 -05:00