-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.6.0-HF20
-
Fix Version/s: 5.6.0-HF20, 5.7.2
-
Component/s: Nuxeo Drive
-
Environment:Nuxeo client on linux debian wheezy
Nuxeo drive fails to upload or create documents since commit 542367af9c78b0772c02793f106ea78d23eba1b5 (NXP-9706: Use poster.streaminghttp to upload blobs)
This doesn't affect directory creation
Bug reproductible on github's 5.6.0 tag and master after this commit.
ndrive --debug output:
2013-07-04 18:23:59,038 13679 140070382159616 ERROR nxdrive.synchronizer Failed to sync LastKnownState<local_folder=u'Nuxeo Drive', local_path=u'/TestPage/JLF/Cong\xe9s CRI 2012.xls', remote_name=u'Cong\xe9s CRI 2012.xls', local_state=u'modified', remote_state=u'synchronized'>, blacklisting doc pair for 300 seconds
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nxdrive/synchronizer.py", line 1036, in synchronize
self.synchronize_one(pair_state, session=session)
File "/usr/local/lib/python2.7/dist-packages/nxdrive/synchronizer.py", line 575, in synchronize_one
local_info, remote_info)
File "/usr/local/lib/python2.7/dist-packages/nxdrive/synchronizer.py", line 590, in _synchronize_locally_modified
name=doc_pair.remote_name,
File "/usr/local/lib/python2.7/dist-packages/nxdrive/client/remote_file_system_client.py", line 140, in stream_update
file_path, name, id=fs_item_id)
File "/usr/local/lib/python2.7/dist-packages/nxdrive/client/base_automation_client.py", line 285, in execute_with_blob_streaming
if upload_result['uploaded'] == 'true':
TypeError: string indices must be integers, not str