Markush2010/CloudRAID — Issue #2: PUT in SugarSyncConnector causes duplicate files
Author: fbausch
Created: 2011-12-10 14:43:36+00:00
State: open
Labels: Cloud

Using PUT to upload a new file to SugarSync causes existing files to be duplicate on the SugarSyncServers.

The solution is to first delete the existing file on the SugarSync servers.
This commit shows how the file is really deleted: https://github.com/Markush2010/CloudRAID/commit/86eafd03dcce40c058aea80c6178e17709adca7f .
The while loop reading the InputStream fixes an issue that the file remains on the servers although the DELETE request was sent.