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

problems handling files with spaces #749

Closed
tonyipm opened this issue Aug 22, 2024 · 1 comment · Fixed by #750
Closed

problems handling files with spaces #749

tonyipm opened this issue Aug 22, 2024 · 1 comment · Fixed by #750
Assignees
Labels
bug Something isn't working

Comments

@tonyipm
Copy link

tonyipm commented Aug 22, 2024

Describe the bug
Trying to copy a file with a space in the name reports NoSuchKey

To Reproduce
Create 2 buckets:
vgaws s3 mb s3://aaa
vgaws s3 mb s3://bbb

Create 2 local files, one with a space in the name:
touch 'has space'
touch nospace

Copy these files to bucket aaa:
vgaws s3 cp nospace s3://aaa;vgaws s3 cp has\ space s3://aaa
upload: ./nospace to s3://aaa/nospace
upload: ./has space to s3://aaa/has space

Files can be copied back to local:

vgaws s3 cp 's3://aaa/has space' .
download: s3://aaa/has space to ./has space
vgaws s3 cp 's3://aaa/nospace' .
download: s3://aaa/nospace to ./nospace

BUT if trying to copy to bucket bbb:

vgaws s3 cp 's3://aaa/nospace' s3://bbb
copy: s3://aaa/nospace to s3://bbb/nospace
vgaws s3 cp 's3://aaa/has space' s3://bbb
copy failed: s3://aaa/has space to s3://bbb/has space An error occurred (NoSuchKey) when calling the CopyObject operation: The specified key does not exist.

Expected behavior
Files with spaces in name should copy between buckets

Server Version
./versitygw --version
Version :
Build : release-rpm
BuildTime: 2024-08-14_09:28:07AM

uname -a
Linux ip-10-100-0-246 4.18.0-513.18.1.el8_9.x86_64 #1 SMP Thu Feb 1 03:51:05 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

Additional context

@tonyipm tonyipm added the bug Something isn't working label Aug 22, 2024
@benmcclelland
Copy link
Member

Thank you for the clear reproducer. I can confirm that I get the error as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants