You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Server to server sharing handle remote server error cases #9088
Setup two servers "localserver" and "remoteserver".
Enable external storage app on "localserver"
On "remoteserver" share a folder "shared_folder"
Open the link
Add the share to "localserver" (server-server sharing)
Explore "shared_folder"
On "remoteserver", do any ONE of the following:
a) enable maintenance mode
b) shut down "remoteserver"
c) delete/unshare "shared_folder"
Expected result
For a) and b), on "localserver" the "shared_folder" is still visible but the user cannot navigate inside. The sync client must also somehow ignore that folder. It should not try and deleted the files that are not available.
Actual result
With a) and b) I can still navigate into the folder. Cached images can be viewed but new ones give a broken preview icon. Downloading files give "Cloud not found".
While "remoteserver" was down, the sync client (I started it after the shutdown) downloaded zero-sized files. After reenabling "remoteserver" I could not make the sync client redownload the images with the correct size. It staid on zero.
More information
In general it would be good to make this more robust and work properly with the sync client.
I'm not sure yet how such cases can be handled as I believe the sync client has no concept of "this folder is currently unavailable".
Should we return 503 when accessing that folder ?
Note: this is probably a more general issue that could also happen with regular external storages. The sync client would delete all local files when a specific mount point becomes unavailable, so fixing that issue globally might fix the server-server share case as well.
@icewind1991 I was going to ask you if you could take a look and POP, your PR appears.
Would be good if you could tell us next time you're working on something, or assign it to yourself. 😄
Activity
PVince81 commentedon Jun 20, 2014
Setting milestone to OC 7 CE.
karlitschek commentedon Jun 26, 2014
@icewind1991 @schiesbn Can you have a look?
PVince81 commentedon Jun 30, 2014
@icewind1991 I was going to ask you if you could take a look and POP, your PR appears.
Would be good if you could tell us next time you're working on something, or assign it to yourself. 😄
Will have a look at your PR.
PVince81 commentedon Jul 2, 2014
Fixed by above PR