can't you use the RoutingContext for anything like that? I thought we
had already had some stuff on it.

On Wed, Mar 20, 2024 at 9:41 AM Domenico Francesco Bruscino
<bruscin...@gmail.com> wrote:
>
> I think we should always reuse the server session of the original context
> because it will be used to execute security checks before creating
> addresses and queues.
>
> On Wed, 20 Mar 2024 at 09:35, Anton Roskvist <ant...@apache.org> wrote:
>
> > Thanks for your feedback, and yes, I also agree that adding a boolean to
> > the divert-configis a good approach.
> >
> > There is one other thing about the implementation I'm thinking about
> > though... after the divert sends the message copy over to postOffice it
> > passes 2 additional auto-create-checks already. They are not passing
> > because the diverted message does not have an associated serverSession
> > which is where the actual auto-create-check is implemented.
> >
> > I can add the serverSession from the original context to the message copy,
> > and then the auto-creation works without any additional changes to the
> > divert. I do not know if this is okay to do though or if it has any
> > potential side effects (all divert related tests I've run passes).
> >
> > If this is an acceptable way of doing it, a divert-config such as
> > "reuse-user-session" could be used to gate new vs old behavior?
> >



-- 
Clebert Suconic

Reply via email to