driseley opened a new pull request, #21266:
URL: https://github.com/apache/camel/pull/21266

   # Description
   
   This PR updates the RecipientListProcessor to ensure that the original 
exchange is set on the AggregationStrategy if it's of type 
UseOriginalAggregationStrategy.  This uses the same technique that is uses in 
the Splitter Processor: 
https://github.com/apache/camel/blob/585f77d400b994a4483b200af33c8bd2d7b81cf0/core/camel-core-processor/src/main/java/org/apache/camel/processor/Splitter.java#L105C7-L113
   
   It then updates the UseOriginalAggregationStrategy to ensure that if 
propagateException is configured **and an exception is found**, then it safely 
sets the target for the exception.   This approach preserves the original 
exchange, if no exception is found, which is required for other processors (eg 
MulticastProcessor)
   
   3 new unit test cases are added to verify the interaction of the 
RecipientList EIP and UseOriginalAggregationStrategy
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to