sync remote2remote traceback in _upload() #131

Closed
mdomsch opened this Issue Mar 6, 2013 · 1 comment

1 participant

@mdomsch
s3tools member

From s3-bugs mailing list, reported by Walter Sze:

Problem: KeyError: target_uri
S3cmd: 1.5.0-alpha1

Traceback (most recent call last):
File "./s3cmd", line 2037, in
main()
File "./s3cmd", line 1978, in main
cmd_func(args)
File "./s3cmd", line 1166, in cmd_sync
return cmd_sync_remote2remote(args)
File "./s3cmd", line 697, in cmd_sync_remote2remote
seq = _upload(update_list, seq, src_count + update_count)
File "./s3cmd", line 683, in _upload
dst_uri = S3Uri(item['target_uri'])
KeyError: 'target_uri'

@mdomsch
s3tools member

merged #133

@mdomsch mdomsch closed this Mar 7, 2013
@ksauzz ksauzz pushed a commit to ksauzz/s3cmd that referenced this issue Feb 14, 2014
@mdomsch mdomsch sync remote2remote: set target_uri on updated files too, bug 131
fixes bug s3tools#131

We were not setting the target_uri field on files that had changed,
only on files that were to be newly uploaded.  This was causing a
traceback when referencing the target_uri field when copying the
changed file.
2a4fafc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment