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

[JENKINS-64629] Fix uncaught exception for unauthorized users #104

Merged
merged 2 commits into from
Mar 9, 2021

Conversation

jvz
Copy link
Member

@jvz jvz commented Feb 16, 2021

When attempting to email a user with a locked, disabled, or otherwise unauthorized account, different types of AuthenticationException were not caught which would cause the mail to fail.

https://issues.jenkins.io/browse/JENKINS-64629

Related to error message updates in jenkinsci/ldap-plugin#74 which helped surface the problem.

@jeffret-b @basil @jglick @l3ender

When attempting to email a user with a locked, disabled, or otherwise unauthorized account, different types of AuthenticationException were not caught which would cause the mail to fail.
Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for revising this and getting end users up and running. 🎉

@jvz
Copy link
Member Author

jvz commented Feb 16, 2021

Looks like there's a corresponding update needed for email-ext as well. Will follow up shortly.

src/main/java/hudson/tasks/MailSender.java Outdated Show resolved Hide resolved
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants