Skip to content

Server to server sharing handle remote server error cases #9088

Closed

Description

@PVince81

Steps to reproduce

  1. Setup two servers "localserver" and "remoteserver".
  2. Enable external storage app on "localserver"
  3. On "remoteserver" share a folder "shared_folder"
  4. Open the link
  5. Add the share to "localserver" (server-server sharing)
  6. Explore "shared_folder"
  7. 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.

To be discussed:
@icewind1991 @schiesbn @karlitschek @craigpg @dragotin

Activity

  1. PVince81 commented on Jun 20, 2014

    @PVince81
    ContributorAuthor

    Setting milestone to OC 7 CE.

  2. added this to the ownCloud 7 CE milestone on Jun 20, 2014
  3. karlitschek commented on Jun 26, 2014

    @karlitschek
    Contributor

    @icewind1991 @schiesbn Can you have a look?

  4. PVince81 commented on Jun 30, 2014

    @PVince81
    ContributorAuthor

    @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.

  5. PVince81 commented on Jul 2, 2014

    @PVince81
    ContributorAuthor

    Fixed by above PR

  6. locked as resolved and limited conversation to collaborators on Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions