Skip to content

Support for x-id Query Parameter Added by aws-sdk-go-v2 and Other AWS SDKs - #72

Open
desw0lf wants to merge 2 commits into
FilenCloudDienste:mainfrom
desw0lf:main
Open

Support for x-id Query Parameter Added by aws-sdk-go-v2 and Other AWS SDKs#72
desw0lf wants to merge 2 commits into
FilenCloudDienste:mainfrom
desw0lf:main

Conversation

@desw0lf

@desw0lf desw0lf commented Apr 16, 2025

Copy link
Copy Markdown

Problem

When using the aws-sdk-go-v2 library (and other AWS SDKs), requests to S3 APIs often include an x-id query parameter (e.g., x-id=DeleteObjects, x-id=PutObject, x-id=GetObject, etc.).

Issue

Current implementation in some handlers (GetObject, HeadObject, PutObject, DeleteObject, DeleteObjects*) does not account for this parameter and automatically rejects any query parameters present in the URL.

Solution

Update the handlers to allow an optional x-id query parameter, ensuring compatibility with requests generated by AWS SDKs.

Notes

  • *Additional implementation ensures that the delete query parameter is still required in the DeleteObjects handler
  • related discussion

desw0lf added 2 commits April 16, 2025 14:15
* add validate-query, implement in deleteObject, deleteObjects, getObject, headObject, putObject (omit listObjects)

* remove unused minLength

* fix typo: DeleteObject --> DeleteObjects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant