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 Versioning: Wrong version of files downloaded when parent folder is downloaded #5758

Closed
cyberduck opened this issue Mar 9, 2011 · 3 comments
Assignees
Labels
bug fixed s3 AWS S3 Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

0058ac8 created the issue

Steps to reproduce:

  • Create an S3 bucket, and enable 'Bucket Versioning' in the S3 tab in preferences
  • Create a folder in the bucket, e.g. 'foo'
  • Place a text file containing some content into the folder, e.g. 'test.txt'
  • Overwrite said text file with an empty file of the same name. e.g. the 'latest' version of test.txt should now be empty.
  • In Cyberduck, drag the 'foo' folder from S3 to the desktop.
  • Examine the downloaded text.txt file. It will be the non-empty version.

It appears that Cyberduck does not download the latest version of files in versioned buckets when a folder is copied. Same behaviour when the right-click 'Download To' option is used

If you drag the text.txt file itself to the desktop, then it does download the correct version.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

I currently get arbitrary results here and I don't think it is related to downloading a folder or a single file. When selecting the default (latest) file for download we always use the default GET with no version information whatsoever which should always return the latest version as with non versioned buckets. Have to investigate with AWS.

I can replicate the issue as described in the ticket.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

The issue is that when download a folder all of its content including all versions are downloaded eventually overriding the locally where you will have an arbitrary version depending on what version was downloaded latest.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In d44422c.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed s3 AWS S3 Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants