Steps:
- Launch Drive
- Login valid credentials
- Upload a text file and wait for sync completion
- Make conflict of the file
- Open conflict window
- Open remote
Actual Result:
The remote file is not opened.
Expected Result:
Remote file should be downloaded into the .nuxeo-drive/guid/ folder and open in text editor
See this screenshot and those logs
Exception raised in the logs:
Exception in thread Thread-13: Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/Users/ravindersinghl/Documents/NuxeoCode/NuxeoDriveOrg/nuxeo-drive/nuxeo-drive-client/nxdrive/engine/engine.py", line 321, in run doc_ref, filename=remote_name, user=self._remote_user) TypeError: edit() got an unexpected keyword argument 'filename'
Root Cause detected by customer: Passing an 'filename' parameter, which is not part of definition
def run():
self._manager.get_direct_edit().edit(self._server_url,
doc_ref, filename=remote_name, user=self._remote_user)
self._edit_thread = Thread(target=run)
self._edit_thread.start()
def edit(self, server_url, doc_id, user=None, download_url=None):
try:
Fix: Remove filename parameter
engine.py
def run():
self._manager.get_direct_edit().edit(self._server_url,
doc_ref, user=self._remote_user)
self._edit_thread = Thread(target=run)
self._edit_thread.start()