Details
-
Bug
-
Resolution: Done
-
Major
-
5.9.5.Final
-
None
Description
If a JAX-RS method is invoked and the following conditions are met:
- the invoked method is annotated with LRA.Type.REQUIRES_NEW;
- the invoked method is not annotated with @Nested;
- there is an LRA context present on the incoming request
then the implementation (of the LRA spec) will begin a nested LRA which is contrary to the specified behaviour. Note that there is an outstanding issue regarding nested LRAs but this issue affects the implementation of the current specification and needs fixing.
In addition there is also the situation where the outbound JAX-RS request filter may override the LRA context header (this issue can be reproduced by starting an LRA and then starting a JAX-RS request with a different "LRA context header" - the expected behaviour in this case is to run the request with the context set by the user.