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

s3: test GetObject with PartNumber and SSE-C encryption #591

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Sep 27, 2024

test case for ceph/ceph#60019

copies the existing test_multipart_get_part() test but replaces _multipart_upload() with _multipart_upload_enc()

assert response['ContentLength'] == size
# compare contents
for chunk in response['Body'].iter_chunks():
assert chunk.decode() == data[0:len(chunk)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

when this test runs against rgw without the fix from ceph/ceph#60019, it fails here with:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 4: invalid start byte

because it's getting the encrypted bytes

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