Skip to content

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

2 participants

@underrun
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 underrun added a commit to underrun/boto that referenced this issue Jan 4, 2012
@underrun underrun open_read uses key's version_id if exists
fixes #458 and allows iterating over specific version of a key
78be793
@garnaat garnaat was assigned Jan 16, 2012
@msabramo msabramo pushed a commit to msabramo/boto that referenced this issue Nov 28, 2012
@underrun underrun open_read uses key's version_id if exists
fixes #458 and allows iterating over specific version of a key
5514078
@garnaat
the boto project 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
Something went wrong with that request. Please try again.