Skip to content
This repository

sync remote2remote traceback in _upload() #131

Closed
mdomsch opened this Issue · 1 comment

1 participant

Matt Domsch
Matt Domsch
Collaborator

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'

Matt Domsch mdomsch closed this
Matt Domsch
Collaborator

merged #133

Kazuhiro Suzuki ksauzz referenced this issue from a commit in ksauzz/s3cmd
Matt Domsch 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
Something went wrong with that request. Please try again.