synapse sync file does not work if file is a URL

Description

Filing because I can't find the bug. We are advertising the sync command as a way to link numerous files on Synapse (instead of uploading them) but currently this is not supported. This will block many of our users from being able to upload.

Environment

None

Activity

Show:
Ziming Dong
October 5, 2017, 7:20 PM

I just tired this as the manifest file and it worked:

Did you do the fulll "https://www....." or did you just use "www..."? The latter does not get recognized as a url (which should be fixed in a separate issue)

Xindi Guo
October 5, 2017, 7:33 PM
Edited

I used a URL of a FTP site

Xindi Guo
October 5, 2017, 7:36 PM
Edited

Attached are the file I used for testing and the error screenshot in my terminal.

Ziming Dong
October 5, 2017, 8:14 PM

Did you checkout the validation branch? The version number on the develop branch was incremented to 1.7.3 since July so you may need to update

The error message "NotImplementedError: Automatic storing of external files is not supported. Please try downloading the file locally first before storing it or set synapseStore=False" comes from _uploadToFileHandleService(), which we have deprecated in favor of other functions.

Xindi Guo
October 5, 2017, 10:21 PM

Thank you! It works now. I will close this issue.

Assignee

Ziming Dong

Reporter

Sara Gosline

Labels

None

Validator

Sara Gosline

Development Area

None

Release Version History

None

Fix versions

Priority

Minor
Configure