ffang commented on PR #3727:
URL: https://github.com/apache/cxf/pull/3727#issuecomment-6953671743

   > One thing I noticed: the check doesn’t look at whether the call is 
one-way. For one-way calls, RM sets PROCESS_ONEWAY_RESPONSE, so the 202 with 
the acks goes through the in chain as a partial response as well. That means 
one-way calls with anonymous AcksTo (the testOnewayAnonymousAcks* cases in 
SequenceTest) now go through this new path too. It’s probably harmless, but 
it’s a change in behaviour. Could you add a !message.getExchange().isOneWay() 
check so it only affects the two-way case, like the title says? If you meant to 
change one-way too, could you just confirm the one-way SequenceTest cases still 
pass?
   > 
   > Some small things, take them or leave them:
   > 
   > * A quick unit test in RMSoapInInterceptorTest would be good, so we’re not 
relying only on the systests.
   > * RMContextUtils.retrieveMAPs(request, false, true) logs a warning if the 
MAPs are missing. The 4-arg ContextUtils.retrieveMAPs(request, false, true, 
false) avoids that. Shouldn’t come up in practice though.
   > * The new comment is missing a full stop at the end.
   
   Thanks @coheigea, good catch. I didn't mean to change one-way calls: the 
check now also requires `!message.getExchange().isOneWay()`, so a one-way 
call's partial response updates the exchange as before. All the 
`testOnewayAnonymousAcks*` cases in `SequenceTest` pass.
   
   I took the other suggestions too:
   - Two unit tests in `RMSoapInInterceptorTest`: a partial response to a 
two-way request keeps the exchange (fails on main), and a partial response to a 
one-way request still updates it (fails without the new check).
   - `ContextUtils.retrieveMAPs(request, false, true, false)`, so no warning is 
logged.
   - Added the full stop to the comment.
   
   Cheers
   Freeman


-- 
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