-
Bug
-
Resolution: Low Engagement
-
Low
-
None
-
5.9.10, 5.10.1
-
1
-
Severity 3 - Minor
-
Summary
Upgrading Confluence recreates the mail-x.x.x.jar file that is moved when creating a JNDI Connection.
As explained on Setting Up a Mail Session for the Confluence Distribution, you need to ensure that you move (don't copy) mail-x.x.x.jar from <confluence-install>\confluence\WEB-INF\lib to <confluence-install>\lib (x.x.x. represents the version numbers on the jar files in your installation).
When you upgrade Confluence, the mail-x.x.x.jar file is recreated/kept in the installation folder. This causes issues when since email will not be sent when both files are in place.
Steps to Reproduce
- Set up a JNDI SMTP connection
- Upgrade Confluence manually
- Notice the upgrade tasks do not remove the mail-x.x.x.jar
Expected Results
The upgrade should check to see if there is a JNDI connection originally and remove the mail-x.x.x.jar file
Actual Results
The below exception is thrown in the atlassian-confluence.log file:
An error has occurred with sending the test email: java.lang.IllegalArgumentException: Mail server at location [java:comp/env/mail/GmailSMTPServer] is not of required type javax.mail.Session.
Workaround
The workaround is detailed in the guide Mail server at location is not of required type javax.mail.Session.
- Shutdown Confluence
- Delete the mail-x.x.x.jar from <confluence-install>\confluence\WEB-INF\lib (x.x.x. represents the version numbers on the jar files in your installation)
- Restart Confluence and attempt to reconfigure your mail server again.
[CONFSERVER-43358] Upgrading Confluence recreates the mail-x.x.x.jar file that is *moved* when creating a JNDI Connection.
QA Demo Status | New: Not Needed [ 14332 ] | |
QA Kickoff Status | New: Not Needed [ 14236 ] | |
Resolution | New: Low Engagement [ 10300 ] | |
Status | Original: Gathering Impact [ 12072 ] | New: Closed [ 6 ] |
Labels | Original: affects-server | New: affects-server cleanup-seos-fy25 |
Remote Link | Original: This issue links to "Page (Atlassian Documentation)" [ 190770 ] |
Support reference count | New: 1 |
Workflow | Original: JAC Bug Workflow v3 [ 2888355 ] | New: CONFSERVER Bug Workflow v4 [ 2981937 ] |
Workflow | Original: JAC Bug Workflow v2 [ 2797977 ] | New: JAC Bug Workflow v3 [ 2888355 ] |
Workflow | Original: JAC Bug Workflow [ 2715174 ] | New: JAC Bug Workflow v2 [ 2797977 ] |
Symptom Severity | Original: Minor [ 14432 ] | New: Severity 3 - Minor [ 15832 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380843 ] | New: JAC Bug Workflow [ 2715174 ] |
Status | Original: Open [ 1 ] | New: Gathering Impact [ 12072 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 2272418 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380843 ] |