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

   ## Summary
   Fixes pagination header persistence bug where `CamelODataNextLink`, 
`CamelODataCount`, and `CamelODataETag` headers from previous responses 
persisted on the exchange when reused for subsequent requests.
   
   This caused:
   - Pagination loops to never terminate (old `nextLink` present when last page 
had none)
   - Stale ETags sent in conditional requests (old ETag used for If-Match)
   - Incorrect count values on pages that don't include count
   
   ## Changes
   - Clear `CamelODataNextLink`, `CamelODataCount`, and `CamelODataETag` 
headers before processing each response
   - Added comprehensive tests verifying headers don't persist across 
pagination requests
   
   ## Test Plan
   - [x] New test suite `ODataPaginationHeaderPersistenceTest` with 5 test cases
   - [x] All existing camel-odata tests pass (54 tests total)
   - [x] Tests verify nextLink, count, and ETag headers are cleared when absent 
in response
   - [x] Tests verify headers are updated correctly when present in multiple 
responses
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   _Claude Code on behalf of Guillaume Nodet_


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