Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Dec 5, 2023

This enhances error pages of early thrown exceptions where we cannot render a template to display the actual exception details. Only applied in debug mode as with the regular exception rendering.

Before After
Screenshot 2023-12-05 at 21 46 31 Screenshot 2023-12-05 at 21 46 17

Checklist

@juliusknorr juliusknorr requested review from a team, ArtificialOwl, blizzz, icewind1991, nfebe and nickvergessen and removed request for a team December 5, 2023 20:48
@juliusknorr juliusknorr added enhancement 3. to review Waiting for reviews labels Dec 5, 2023
@juliusknorr juliusknorr added this to the Nextcloud 29 milestone Dec 5, 2023
if ($debug) {
print("\n");
print($exception->getMessage() . ' ' . $exception->getFile() . ' at ' . $exception->getLine() . "\n");
print($exception->getTraceAsString());

Check failure

Code scanning / Psalm

TaintedHtml

Detected tainted HTML
if ($debug) {
print("\n");
print($exception->getMessage() . ' ' . $exception->getFile() . ' at ' . $exception->getLine() . "\n");
print($exception->getTraceAsString());

Check failure

Code scanning / Psalm

TaintedTextWithQuotes

Detected tainted text with possible quotes
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 23, 2024
@skjnldsv skjnldsv force-pushed the enh/early-exception-print branch from 289f093 to efc3d76 Compare February 23, 2024 14:57
@skjnldsv skjnldsv enabled auto-merge February 23, 2024 18:08
@skjnldsv skjnldsv disabled auto-merge February 23, 2024 18:24
@skjnldsv skjnldsv merged commit d0f7156 into master Feb 23, 2024
@skjnldsv skjnldsv deleted the enh/early-exception-print branch February 23, 2024 18:24
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants