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

Cannot delete S3 files #18

Closed
swisscat opened this issue Oct 25, 2017 · 1 comment
Closed

Cannot delete S3 files #18

swisscat opened this issue Oct 25, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@swisscat
Copy link

swisscat commented Oct 25, 2017

When a file is uploaded on a S3 bucket, the function :function prefixes a slash in front of the filename, which prevents proper resource deletion.

Looks like the ItemModel refactor adds an unecessary slash in front of the Delete command, which produces a command equivalent to (double slash)

swisscat@swisscat:~$ aws s3 rm s3://<bucket>//var/file.pdf
fatal error: An error occurred (404) when calling the HeadObject operation: Key "/var/file.pdf" does not exist

Commit swisscat@912f2fa fixes the issue, however, I suspect it might not be generic enough.

@swisscat
Copy link
Author

Fixed with 49de88e.

@psolom psolom added this to the 1.1.2 milestone Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants