Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force space character encoding for canonical query parameters #399

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

dreznichuk
Copy link
Contributor

Hi
I am facing some issues while trying to list objects in buckets hosted in CEPH S3

Using both listObjects and listObjectsV2 when nextMarker/nextContinuationToken contain spaces.

Uri.encodeQueryComponent encodes spaces with + sign, while server encodes as %20 which leads to SignatureDoesNotMatch error

I've checked this signature calculation mismatch on vanilla AWS S3 and it can be reproduced with old listObjects method and objects with spaces in names

Force replacement space character as %20
Copy link
Contributor

@isoos isoos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this lgtm, wdyt @xvrh?

@xvrh xvrh merged commit 06ac35b into agilord:master Jun 22, 2023
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.

3 participants