file URLs leads to wrong path

Description

Repro:

but ls /Users/lom/.synapseCache/155/8543155/'
is empty.

The path should have been /Users/lom/.bashrc

Environment

None

Activity

Show:
Larsson Omberg
August 22, 2016, 5:45 PM

Still able to repro this.

Larsson Omberg
June 8, 2017, 7:57 PM

I get an IOError

In [23]: x = syn.get('syn9974104')
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-23-a60a86d45537> in <module>()
----> 1 x = syn.get('syn9974104')

/Users/lom/Dropbox/Sage/synapsePythonClient/synapseclient/client.pyc in get(self, entity, **kwargs)
698 raise SynapseUnmetAccessRestrictions(warning_message)
699 warnings.warn(warning_message)
--> 700 return self._getWithEntityBundle(entityBundle=bundle, entity=entity, **kwargs)
701
702

/Users/lom/Dropbox/Sage/synapsePythonClient/synapseclient/client.pyc in _getWithEntityBundle(self, entityBundle, entity, **kwargs)
787 if downloadFile:
788 if file_handle:
--> 789 self._download_file_entity(downloadLocation, entity, ifcollision, submission)
790 else: # no filehandle means that we do not have DOWNLOAD permission
791 warning_message = "WARNING: you do not have DOWNLOAD permissions for this file. The file has NOT been downloaded"

/Users/lom/Dropbox/Sage/synapsePythonClient/synapseclient/client.pyc in _download_file_entity(self, downloadLocation, entity, ifcollision, submission)
845 # _downloadFileHandle may also return None to indicate that the download failed
846 downloadPath = self._downloadFileHandle(fileResult['preSignedURL'],
--> 847 downloadPath, fileResult['fileHandle'])
848
849 if downloadPath is None or not os.path.exists(downloadPath):

/Users/lom/Dropbox/Sage/synapsePythonClient/synapseclient/client.pyc in _downloadFileHandle(self, url, destination, fileHandle, retries)
1802 retries -= 1
1803 ## Re-raise exception
-> 1804 raise exc_info[0](exc_info[1])
1805
1806

IOError: Local file (file:///Users/lom/.bash_history) does not exist.

Ziming Dong
June 8, 2017, 10:22 PM

the IOError should be fixed by

Assignee

Ziming Dong

Reporter

Larsson Omberg

Labels

None

Validator

Larsson Omberg

Development Area

None

Release Version History

None

Fix versions

Priority

Minor
Configure