From 0a90514ca6e1a1f49b9a58a7b46369e5308f38fc Mon Sep 17 00:00:00 2001 From: croway Date: Fri, 4 Sep 2026 09:03:13 +0200 Subject: [PATCH] Fix mail-ms-exchange-oauth2: stray brace in IMAP URI, stale docs CamelApplication.java built the IMAP endpoint URI with a stray "}" after the delay parameter, breaking the URI for every poll interval. Also refreshed the README's stale sample log (Spring Boot 2.7.5 -> 4.1.1, matching the actual runtime) and bumped the hardcoded msal4j-version property from 1.15.1 to the current 1.26.0. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01EbjZemqMg395XFGDRekLBM --- mail-ms-exchange-oauth2/Readme.adoc | 2 +- mail-ms-exchange-oauth2/pom.xml | 2 +- .../org/apache/camel/example/mail/oauth2/CamelApplication.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mail-ms-exchange-oauth2/Readme.adoc b/mail-ms-exchange-oauth2/Readme.adoc index f12c6ef54..826ab6111 100644 --- a/mail-ms-exchange-oauth2/Readme.adoc +++ b/mail-ms-exchange-oauth2/Readme.adoc @@ -37,7 +37,7 @@ And you should see this output: \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ - :: Spring Boot :: (v2.7.5) + :: Spring Boot :: (v4.1.1) 2022-10-24 19:19:58.705 INFO 2274709 --- [ main] o.a.c.e.mail.oauth2.CamelApplication : Starting CamelApplication 2022-10-24 19:19:58.707 INFO 2274709 --- [ main] o.a.c.e.mail.oauth2.CamelApplication : No active profile set, falling back to 1 default profile: "default" diff --git a/mail-ms-exchange-oauth2/pom.xml b/mail-ms-exchange-oauth2/pom.xml index 1c454b3fa..1bb3aef41 100644 --- a/mail-ms-exchange-oauth2/pom.xml +++ b/mail-ms-exchange-oauth2/pom.xml @@ -18,7 +18,7 @@ with IMAP protocol and access email data for Office 365 users using OAuth2 authentication - 1.15.1 + 1.26.0 UTF-8 Mail diff --git a/mail-ms-exchange-oauth2/src/main/java/org/apache/camel/example/mail/oauth2/CamelApplication.java b/mail-ms-exchange-oauth2/src/main/java/org/apache/camel/example/mail/oauth2/CamelApplication.java index 0e6a6a5bd..18eabc12d 100644 --- a/mail-ms-exchange-oauth2/src/main/java/org/apache/camel/example/mail/oauth2/CamelApplication.java +++ b/mail-ms-exchange-oauth2/src/main/java/org/apache/camel/example/mail/oauth2/CamelApplication.java @@ -50,7 +50,7 @@ public RouteBuilder routeBuilder(){ @Override public void configure() throws Exception { from("imaps://outlook.office365.com:993?" + - "delay="+conf.getPollInterval()+"}&" + + "delay="+conf.getPollInterval()+"&" + "authenticator=#exchangeAuthenticator&" + "mail.imaps.auth.mechanisms=XOAUTH2&" + "debugMode="+conf.isDebug()+"&" +