Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [angus-dev] [External] : Issue with META-INF/services/jakarta.mail.Provider
  • From: Jorge Bescos Gascon <jorge.bescos.gascon@xxxxxxxxxx>
  • Date: Tue, 12 Aug 2025 10:38:18 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=84ZIPW2ROVCKa1ayuZPJLLzgyxFTEvP58s7gTzRogDQ=; b=lpgC7zTlu1BnjHAZtGOcyeK8rlelzUw1ft6mgFfVpbIG64VKN+1GfXcLKYDeYwrBc6jpD1j4Gdye+85ASNOYVNxViOYUXLGLKBepVzCtTtO9vz7rG12Hh/lALgmEfw5rzjJ6hHdWEOR2alZ3QMubX340m+giUpeFUfx0MXBIOmEu/dL4Ec0j6aAc6jO0eVtBL1oxgTcr3Y4L0EwnjReQVQ8Pm5PQgqHj/g8yNsb9U2Y9QcWTwBvsNQ7jZ8NS6zYkOrn1YKqzFnYTY/OiIZq8MMDhxhxQ1rvKYCkuFSHYOpBfiSAdokFHvybnkCjbctImOKjMqzW8pfUcpQz3FBkVKw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lxoctbZ5UI2hN4vFiAlbrxBP/+uvzmtEePt4qJoBEKFmcCf920OtfN8QbV5SiHygXJK33txaedUa6Iz/BRsDOuHdl8f8QbD8K1zIuptBtGcDARmBiIQ+G3pyW4R0KYQRX20BYHqW0eks3ZiOF4y3tD4i8qXMds0TnS34F5784gzFernY3ojhQ3rl3hdQtHkJR7FKsAO1+2TkRx/PRStc6zkbGthBds9Z3fVHRelOj1Gsjkwlg8MDCgPKBpHH0yPnPLUwq1yRMiAYCtECHIUImzYFbJm0TcPdRxcoBCJQVbRT5q6PNnT4mB2jdCY3he7GhN5jrjRVyDgeoMabvTOf+Q==
  • Delivered-to: angus-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/angus-dev/>
  • List-help: <mailto:angus-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/angus-dev>, <mailto:angus-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/angus-dev>, <mailto:angus-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHcC3AUcFs0B50zyUiKiN61os6F1bRe011/
  • Thread-topic: [External] : [angus-dev] Issue with META-INF/services/jakarta.mail.Provider

Hi Metin,


Thank you,
Jorge

From: angus-dev <angus-dev-bounces@xxxxxxxxxxx> on behalf of bugzilla.eclipse.ms--- via angus-dev <angus-dev@xxxxxxxxxxx>
Sent: Tuesday, August 12, 2025 12:00
To: angus-dev@xxxxxxxxxxx <angus-dev@xxxxxxxxxxx>
Cc: bugzilla.eclipse.ms@xxxxxxxxxxxxx <bugzilla.eclipse.ms@xxxxxxxxxxxxx>
Subject: [External] : [angus-dev] Issue with META-INF/services/jakarta.mail.Provider
 
Hi everyone,

I’ve just recently subscribed to this mailing list, because we have a problem with the Eclipse Angus library, and I wanted to ask your opinion if this is an issue with the library or with our expectations.

We have implemented a plugin for Atlassian Confluence that registers as the SMTP provider in order to get hold of outgoing email, because our plugin has to encrypt them. We used to do this by specifying our provider in META-INF/service/jakarta.mail.Provider within our jar, so it would be picked up and used as the default provider. This used to work well with com.sun.mail_jakarta.mail-1.6.7.jar, but not any more since Atlassian has upgraded to using org.eclipse.angus_angus-mail-2.0.3.jar.

Strange enough, it may work or not, depending on the names of the two jars. So we assume it depends on the order in which they are loaded, and thus, which of the providers is found first or last in META-INF/services/jakarta.mail.Provider of the respective jar. However, we think that this indeterministic behavior that should not occur, should it?

When we delete the META-INF/services/jakarta.mail.Provider in the org.eclipse.angus_angus-mail-2.0.3.jar, everything works as before.

I’ve filed an issue at https://github.com/eclipse-ee4j/angus-mail/issues/170, because it looks like a bug to us, or perhaps like a regression of a similar issue that was introduced in javax.mail 1.6.2 and gave us the same symptoms.

I wonder if you are saying that our approach is perhaps not supported or not the intended use, and we should do it differently?

Thanks
Metin






Back to the top