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

Improve traces of invalid token exceptions #21122

Merged
merged 2 commits into from
May 27, 2020

Conversation

ChristophWurst
Copy link
Member

This should help with issues like nextcloud/twofactor_totp#404 (comment).

In general a catch-and-throw-new should transport the previous exception. Otherwise the trace gets lost and debugging is more complicated than it needs to be.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@georgehrke
Copy link
Member

We should also log the exception in https://github.com/nextcloud/server/blob/master/lib/private/User/Session.php#L534, otherwise the exception message gets lost

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst
Copy link
Member Author

Done

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

🚀

@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 27, 2020
@rullzer rullzer merged commit 3ee2dbe into master May 27, 2020
@rullzer rullzer deleted the enhancement/auth-token-exception-reporting branch May 27, 2020 17:37
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants