gnodet opened a new pull request, #2959:
URL: https://github.com/apache/cxf/pull/2959

   ## Summary
   - `HolderInInterceptor` threw `IndexOutOfBoundsException` when a SOAP 
response was missing output parts defined in the WSDL (e.g. from non-compliant 
servers like Windows WinRM)
   - Added bounds check before accessing `MessageContentsList` — when the 
response part is absent, the holder retains its original value instead of 
crashing
   - Supersedes PR #297 (closed as stale after 8 years with no test case)
   
   ## Test plan
   - [x] Added `HolderInInterceptorTest` that reproduces the exact 
`IndexOutOfBoundsException` scenario
   - [x] Verified test fails without the fix (`IndexOutOfBoundsException: Index 
1 out of bounds for length 1`)
   - [x] Verified test passes with the fix
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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