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
When accessing externally mounted storage (or in our case parts of the underlying filesystem) certain folders may not be readable by the current user (because of underlying ACLs preventing the user to read the folder). This case should be properly recognized by the sync client.
The implementation should consider two cases:
the PROPFIND request on unreadable folder returns a specific error code (would 403 be OK?) and the sync client knows that it should not be looking into this folder anymore (ignore)
Here is a related problem to solve: suppose that I change the ACL to give access to a directory which was not readible before. I would assume that a change in ACL should result in an ETAG change and client would PROPFIND again the parent and read the new ACL and access the directory.
The current user experience is bad: in this case the client shows 403 error and aborts current sync run. The it restarts a new run which shows 403 and aborts. And so on.
Given a folder is unreadable in a mounted external storage, the sync client must not stop syncing.
In the filecache mark the folder as unreadable, so a PROPFIND or other access will not provide contents. Ideally including information about the permissions. @butonic
As @guruz mentioned, there's already code to handle 403s returning from the server. Probably what we need is to be certain that the server identifies the "unauthorized"/"unavailable" situations and return the right HTTP code. (See owncloud/core#28598 as example)
@SamuAlfageme adding a comment to #4622 (comment) Sometimes the oc_filecache has still old files/share that doesn't exist anymore.
An occ files:scan to that path solves most of the time the problem, but the client loops until the admin update the oc_filescache table.
A temporarily unavailable in main storage should not be possible. (The server should take care to update the cache table.) - I have often seen in many issues!
In external storages should probably have a different approach.
Activity
[-]Consider unreadable folders for the sync protocol[/-][+]Consider unreadable remote folders[/+]guruz commentedon Mar 30, 2016
This discussion should include @DeepDiver1975
moscicki commentedon Oct 11, 2016
Here is a related problem to solve: suppose that I change the ACL to give access to a directory which was not readible before. I would assume that a change in ACL should result in an ETAG change and client would PROPFIND again the parent and read the new ACL and access the directory.
hodyroff commentedon May 10, 2017
What happens today? What is the current user experience?
moscicki commentedon May 12, 2017
The current user experience is bad: in this case the client shows 403 error and aborts current sync run. The it restarts a new run which shows 403 and aborts. And so on.
guruz commentedon May 14, 2017
BTW, we already have handling for temporarily unavailable storages in the client:
https://github.com/owncloud/client/blob/master/csync/src/csync_update.c#L695
felixboehm commentedon May 18, 2017
@butonic
michaelstingl commentedon Jun 20, 2017
@butonic @tomneedham How can the server-side be improved to handle such situations?
SamuAlfageme commentedon Aug 8, 2017
As @guruz mentioned, there's already code to handle 403s returning from the server. Probably what we need is to be certain that the server identifies the "unauthorized"/"unavailable" situations and return the right HTTP code. (See owncloud/core#28598 as example)
cdamken commentedon Aug 21, 2017
@SamuAlfageme adding a comment to #4622 (comment) Sometimes the oc_filecache has still old files/share that doesn't exist anymore.
An
occ files:scanto that path solves most of the time the problem, but the client loops until the admin update theoc_filescachetable.A temporarily unavailable in main storage should not be possible. (The server should take care to update the cache table.) - I have often seen in many issues!
In external storages should probably have a different approach.
felixboehm commentedon Mar 20, 2018
@SamuAlfageme will reproduce and describe a solution, maybe best in a new ticket.
SamuAlfageme commentedon Nov 1, 2022
Bumping this one as it's relevant to the whole "negative-acl" feature we recently introduced on CERNBox.
[-]Consider unreadable remote folders[/-][+]Consider unreadable remote folders (e.g. negative ACLs)[/+]