[
https://issues.apache.org/jira/browse/CAMEL-24403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18105872#comment-18105872
]
mayur mohan commented on CAMEL-24403:
-------------------------------------
h2. Updated Pull Request
Previous PR #25550 was closed as it included unrelated RouteService commits
(already in PR #25205).
A clean PR has been opened with only the camel-mail fix (1 commit, 2 files):
*New PR:* https://github.com/apache/camel/pull/25553
*Title:* CAMEL-24403: camel-mail: handle MessageRemovedException in
processCommit to avoid null cause in error log
*Branch:* fix/camel-mail-expunged-message-null-cause
*Commits:* 1
*Files changed:* 2
h3. Files Changed
*
{{components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java}}
** Added {{jakarta.mail.MessageRemovedException}} import
** Added dedicated catch block for {{MessageRemovedException}} before the
generic {{MessagingException}} handler in {{processCommit()}}
*
{{components/camel-mail/src/test/java/org/apache/camel/component/mail/MailConsumerCommitExpungedMessageTest.java}}
(new)
** testCommitWithExpungedMessageProducesNonNullCause
** testCommitWithOtherMessagingExceptionPassedThroughAsIs
h3. Local Build and Test Results
Formatting verified with mvn formatter:format impsort:sort (no changes needed).
{noformat}
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 [JDK 21 / Maven 3.9]
BUILD SUCCESS
{noformat}
> camel-mail: MessageRemovedException in processCommit causes null in error log
> -----------------------------------------------------------------------------
>
> Key: CAMEL-24403
> URL: https://issues.apache.org/jira/browse/CAMEL-24403
> Project: Camel
> Issue Type: Bug
> Reporter: mayur mohan
> Priority: Major
>
> test update
--
This message was sent by Atlassian Jira
(v8.20.10#820010)