Open
Description
What is the bug?
deletePit
request to opensearch client fails with sigv4 signing mismatch
org.opensearch.client.opensearch._types.OpenSearchException: Request failed: [security_exception] The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
The Canonical String for this request should have been
'DELETE
/_search/point_in_time
... remaining request info...
How can one reproduce the bug?
Create an OpenSearchClient following instructions from here (https://opensearch.org/docs/2.7/clients/java/#connecting-to-amazon-opensearch-service) and then attempt to use the client's deletePit
API.
I believe this is because it is a DELETE request with a body. The createPit
method works as intended. Sending the request results in a sigv4 error
What is the expected behavior?
The deletePit
API call does not have a signature mismatch
What is your host/environment?
Mac OS
implementation 'org.opensearch.client:opensearch-java:2.5.0'
implementation 'org.opensearch.client:opensearch-rest-client:2.7.0'
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.