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

_PerformStreamUpload passes Key where fp expected #72

Closed
jterrace opened this issue Feb 22, 2013 · 2 comments
Closed

_PerformStreamUpload passes Key where fp expected #72

jterrace opened this issue Feb 22, 2013 · 2 comments

Comments

@jterrace
Copy link
Contributor

Original author: mfschwa...@google.com (November 30, 2011 00:55:15)

The _PerformStreamUpload call at the end of _CopyObjToObjDiffProvider (in gslib/commands/cp.py) passes in a Key for the first param (where an fp is expected), which only works because of Python "duck typing" (the fact that the lower-level methods that expect an fp only happen to call fp methods that are defined and semantically equivalent to those defined on src_key). This should be replaced by a class that warps an fp interface around the Key, throwing 'not implemented' for methods (like seek) that aren't implemented by non-file Keys.

Original issue: http://code.google.com/p/gsutil/issues/detail?id=73

@jterrace
Copy link
Contributor Author

From mfschwa...@google.com on July 28, 2012 19:37:04
Due to changes in boto that now call fp-specific functions (like tell() and seek()) this duck-typing luckiness no longer suffices. This bug now blocks uses from doing cross-provider copies into gs://

Changing this to high priority.

@jterrace
Copy link
Contributor Author

From mfschwa...@google.com on August 12, 2012 23:39:28
Fixed in gsutil 3.15

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

No branches or pull requests

1 participant