sundapeng opened a new pull request, #7137:
URL: https://github.com/apache/paimon/pull/7137

   ### Purpose
   
   Fix the order of authentication header generation in HttpClient to ensure 
proper request signing for authentication mechanisms that require complete 
request body information.
   
   In the original implementation, authentication headers were generated before 
setting the request entity, which could cause issues for authentication 
mechanisms (like AlibabaCloud DLF ApiSigner) that need to sign the complete 
request including the body content.
   
   This PR adjusts the execution order in `post()` and `delete()` methods to:
   1. Set the encoded request entity first
   2. Generate authentication headers with complete request information
   3. Set the headers to the request
   
   ### Tests
   
   - Existing unit tests for HttpClient should pass
   
   ### API and Format
   
   No API or storage format changes. This is an internal implementation fix 
that maintains backward compatibility.
   
   ### Documentation
   
   No new feature introduced. This is a bug fix for authentication header 
generation order.


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