Skip to content
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

debug enhancements in subadminmiddleware.php #20185

Closed
wants to merge 1 commit into from

Conversation

chludwig
Copy link

Displays the exception message on the 403 error page. Very usefull (not only for newbies) to debug, becaus a 403 page without any message or log file entry is very hard to interprete. In addition a logfile entry would be a nice option.

Displays the exception message on the 403 error page. Very usefull (not only for newbies) to debug, becaus a 403 page without any message or log file entry is very hard to interprete. In addition a logfile entry would be nice should I add it.
First commit was incomplete, sorry about that.
@DeepDiver1975
Copy link
Member

@chludwig Thanks a lot for your contribution!
Contributions to the core repo require a signed contributors agreement http://owncloud.org/about/contributor-agreement/

Alternatively you can add a comment here where you state that this contribution is MIT licensed.

Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/

@@ -71,7 +71,11 @@ public function beforeController($controller, $methodName) {
* @return TemplateResponse
*/
public function afterException($controller, $methodName, \Exception $exception) {
$response = new TemplateResponse('core', '403', array(), 'guest');
$message = '';
if (\OC::$server->getConfig()->getSystemValue('debug', false)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the config object needs to be injected via the ctor

@LukasReschke
Copy link
Member

Displays the exception message on the 403 error page. Very usefull (not only for newbies) to debug, becaus a 403 page without any message or log file entry is very hard to interprete. In addition a logfile entry would be a nice option.

I'd vote for something like https://github.com/master/core/commit/22e724e8292315f600b57a30716e26c1f1c04f66 instead.

@chludwig Mind adjusting your PR?

@chludwig
Copy link
Author

My contribution is MIT licensed.

@LukasReschke @DeepDiver1975 For me it is hard to make your proposed changes, maybe someone else can help here. Thank you.

@MorrisJobke
Copy link
Contributor

I'd vote for something like master/core@22e724e instead.

@LukasReschke This is a dead link 🙈

@PVince81
Copy link
Contributor

@LukasReschke can you clarify ?

@ghost
Copy link

ghost commented Feb 21, 2016

Thanks a lot for your contribution!
Contributions to the core repo require a signed contributors agreement http://owncloud.org/about/contributor-agreement/

Alternatively you can add a comment here where you state that this contribution is MIT licensed.

Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/

LukasReschke added a commit that referenced this pull request Feb 22, 2016
@LukasReschke
Copy link
Member

Replaced by #22551

@lock
Copy link

lock bot commented Aug 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants