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

Rename file with special character fails #580

Open
skuppa opened this issue Nov 6, 2020 · 1 comment
Open

Rename file with special character fails #580

skuppa opened this issue Nov 6, 2020 · 1 comment

Comments

@skuppa
Copy link
Contributor

skuppa commented Nov 6, 2020

We can create a filename with + but we are not able to rename it since S3 backend fails with NoSuchKey.

Log

2020/11/05 22:51:13.141098 s3.ERROR CopyObject {
  Bucket: "my-bucket-name",
  CopySource: "my-bucket-name/samples/foo+",
  Key: "my-bucket-name/samples/.pureftpd-rename.20800.fa3dd36",
  MetadataDirective: "REPLACE",
  ServerSideEncryption: "AES256",
  StorageClass: "STANDARD"
} = NoSuchKey: The specified key does not exist.
	status code: 404, request id: 04313984FBD56708, host id: luBtJ4ycp9z2+B3hc6HfXyHGzdRcNrP1cFlj83iWlyiLBogY/UqkvYKR5NGxxT/k0PqbKxy5dKQ=

How to reproduce?
Try this on a goofys filesystem

touch foo+
mv foo+ foo
mv: cannot move 'foo+' to 'foo': No such file or directory
rm foo+
rm: remove regular empty file 'foo+'? y

Fixes by PR: #579

@skuppa
Copy link
Contributor Author

skuppa commented Nov 6, 2020

Sorry, i closed it accidentally.

@skuppa skuppa reopened this Nov 6, 2020
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

No branches or pull requests

1 participant