s3.Key.open_read() should read current with Key's version_id if any #458

Closed
underrun opened this Issue Jan 4, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@underrun
Contributor

underrun commented Jan 4, 2012

boto.s3.Key.get_file() makes sure to check self.version_id and adds the versionId string to the query.

getting a specific version of a key like:

for line in mybucket.get_key( 'my/key/name.whatever', version_id='SOMELONGSTRINGOFCRAP' ):
    print line.strip()

should let me stream out a file at a specific version_id ... instead, this code gives me the latest version of the file.

underrun added a commit to underrun/boto that referenced this issue Jan 4, 2012

open_read uses key's version_id if exists
fixes #458 and allows iterating over specific version of a key

@ghost ghost assigned garnaat Jan 16, 2012

garnaat added a commit that referenced this issue Jan 16, 2012

Merge pull request #459 from l33twolf/master
fix issue with iterating over specific version of a key in issue #458

msabramo pushed a commit to msabramo/boto that referenced this issue Nov 28, 2012

open_read uses key's version_id if exists
fixes #458 and allows iterating over specific version of a key

msabramo pushed a commit to msabramo/boto that referenced this issue Nov 28, 2012

Merge pull request #459 from l33twolf/master
fix issue with iterating over specific version of a key in issue #458
@garnaat

This comment has been minimized.

Show comment
Hide comment
@garnaat

garnaat Jul 11, 2013

Member

I believe this is no longer an issue. Please re-open if you still see problems with version_id.

Member

garnaat commented Jul 11, 2013

I believe this is no longer an issue. Please re-open if you still see problems with version_id.

@garnaat garnaat closed this Jul 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment