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

Migrate to Jakarta Mail #337

Merged
merged 5 commits into from
Jul 19, 2022
Merged

Migrate to Jakarta Mail #337

merged 5 commits into from
Jul 19, 2022

Conversation

basil
Copy link
Member

@basil basil commented Jan 8, 2022

Downstream of #335, #336, and jenkinsci/jenkins#6165. Bumps the baseline to one containing jenkinsci/jenkins#6165 and migrates to Jakarta Mail.

@basil basil added dependencies java Pull requests that update Java code labels Jan 8, 2022
@basil basil changed the title Javamail migrate Migrate to Jakarta Mail Jan 8, 2022
@basil basil mentioned this pull request Jan 8, 2022
10 tasks
@basil basil force-pushed the javamail-migrate branch 3 times, most recently from 8a85579 to e14b09c Compare January 9, 2022 15:51
@basil basil marked this pull request as ready for review July 19, 2022 18:18
@basil basil added the breaking label Jul 19, 2022
@basil basil merged commit f669030 into jenkinsci:master Jul 19, 2022
@basil basil deleted the javamail-migrate branch July 19, 2022 21:09
filtered = recipients.findAll { addr -> addr.toString().endsWith('@example.com') }
msg.setRecipients(javax.mail.Message.RecipientType.TO, filtered as javax.mail.Address[])
msg.setRecipients(jakarta.mail.Message.RecipientType.TO, filtered as jakarta.mail.Address[])
Copy link
Member

@jglick jglick Jul 20, 2022

Choose a reason for hiding this comment

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

As an aside to the plugin maintainer (if there still is one), this seems like a very dangerous design decision. On top of the other problems with in-process scripting, user-exposed methods (typically @Whitelisted) should avoid referring to types outside the Java Platform in their signatures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking dependencies java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants