-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(OC_Template.php): ensure we throw all errors #40763
base: master
Are you sure you want to change the base?
Conversation
In one branch of the try/catch combination, in one specific path no error was thrown at all, thus the user ended up with a 500 error page online but absolutely no error anyway in the logs. Signed-off-by: Bram <cortex@worlddomination.be>
Hello, Do you want unit/other tests for this quick fix? I honestly would have absolutely no idea on how to do them, I have nearly 0 experience in php (and especially not modern php). Kind regards and thx for this great software ❤️ |
If you reach line 316, that means no error occurred while logging the exception. |
Yes, I've looked at every possible log imaginable:
Adding those lines was the only possible way to get the logging of the exact error somewhere (the error was that nextcloud couldn't connect to the database because it was stopped) |
I assume we fixed that already for master/28 with #37458. |
Maybe it would be a good idea to still have a fallback in the case the logging system broke for whatever reason again? |
Summary
In one branch of the try/catch combination, in one specific path no error was thrown at all, thus the user ended up with a 500 error page online but absolutely no error anyway in the logs.
Checklist
[ ] Screenshots before/after for front-end changes[ ] Backports requested where applicable (ex: critical bugfixes)