Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[angus-dev] Issue with META-INF/services/jakarta.mail.Provider
  • From: bugzilla.eclipse.ms@xxxxxxxxxxxxx
  • Date: Tue, 12 Aug 2025 12:00:18 +0200
  • 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>
  • Ui-outboundreport: notjunk:1;M01:P0:tRiywe4TjOE=;e6P94Pqk7AQXhIPDyePdRKrQz1i kjIhBiAC6fZP5dL4eWHhYB9AZ5Z87ngQV1P+odBo9saeArYgoSS49oAsgrkG0iWXt2bYj6NSA WrwDPk3pEPMKhKj6OdX+7gnXyat/l6Ac9gTXxOrMqkLpbAJQnKIXxcmDq+gvUnzO/ypu4X438 y4o4pi7WO+x2MsBNvS6o+5e8w1Jz+a4Ij3vDcThLv6Dc2nY5WtrVJ+OMdCbhMkr6rtYNGQK4a V38Ip6G78uwqfKHVCuCcnfT7yMbJDwDL90PIuL70vRn6XHZ+AHylEdBOfr9VgZkXgz53we6ls p/mMIx/5ZldIV/HWJ8oAhrWM2LKdRYSFGF9n43mkWHeC0gNgDzSC4F4hE+UzQ3lT4H2y8sxlp z0h+n4ENDQwQd/x9y6S0u2Lfz8X/bX2Rs9LmafDtsXouyb+cNhr8HEkKIKO/rTLn8m3fzz1GG aQZqx4p9d619pXcMoM6M7ITKNAX/WCQ5uDBceqn4gRxKqWN+Pp3Cf2qPojvT1A6gcvRwXcv1n SGdnkkmP3mZKHrCcisMQOi+fRzLTsLfMsMUop2SgU+binvGuUfLG+T+VIRYfqfjuuvl9PzHgD qsItrKsFchd4lIAiKktVordciALzqAEk0oKt2ZffxDloTTR7OCpSAHhv5Vl9j0A9qTJnuHc+C XdUdHmNr3QcB7F+A61pp/jUKoap4nsQw1o9BGfAJIVCcyXtsDv94wiE6iWiOLXTdiRswhTFP1 hOYwOK6l/CdTu9/5/TQAKAnYxQiaeeaUzaluhH3Tc+SkEDy+zp6RxitZKSYYRroXuu6UatJDV HC5jqrhvlos0/hbh0wHsqKiPUbyhcV4VLYSfpz5qxuIrcy9R9o5b2u1Wk7tzT6W/TFsR499V0 cHM9TT8QJeQVgmNc39U3a9uJTwbAky4RJc7cWDG/bYfDX6WP92vSXTh1vIODPu8GOUzRxp4JT 9zHbDtZk2ww5udNVFXYgTH+mPiulMO0lBgJHtZChTDFSTh7K3XR3MOiUuwTVA2Pg3INKsARpE 95JQXMao3sSjDCjzH6iWKTOdE6AouxkEhtyPJpfeZwQw+jeKZcbTBC1yIuuSWqjZoXRlfl7yH lUdyps9JWQCdXr2LhjWJMI4qq2FII99jK7L9R5KpUnPrU4ojjfEDS0Ws6YsR2YNfo+NXlUB3n RZdQiUdHnfGe2VfvBQkZ8iWpdFdYlAfCDmziSP/RHV6EGUhaCRHy/rJLbHUoVr88UyU40ZQsW 9qAvXMGnXOkRGDRPxcv2cz51qB+l0N/V82Z1mLNvJxdg233uM4mvtqN2q/iKZzKELOxHE9ZdN cWj4PFwMg0h+pPtTpjA1touY8LfigkFEOjDjuxrFRASspb9QRN10yhb3T9foY9nusb1CIcrHq Fwcr+m9Tro8LsRnP5nlYnFaa9fekpvv45WrItAMZbJDHkZEGUUHeBg1ntXBLcvz1B0w7SCKp5 gXy/j8a0iVrl/tYG9JgrzMY8H/q93aj8iP6vhg9xAeXKJmtUAB1Av/qY7pOSgPsylCA9Pytuf o3DJ0Y8rVg6QzAdi24K4+THGhHJNCzj10qtcaw50

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