-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shares jail are available after disabling/deleting space #6154
Comments
Very good finding! IMO this "works as designed" but we have a bad design. @butonic FYI |
The CS3 share manager (actually the jsoncs3 share manager implementation) should be unaware of resource state. ListShares should be dumb, return all shares and point to the resource. It will filter out expired shares because that is his responsibility. For whatever reason the GetShare() implementation does a stat request, which it IMO should not make ... it is the responsibility of the consumer to verify if the resource still exists. When a resource / folder / space is deleted we need to walk the tree to delete all shared resources ... should be an async process, similar to indexing. deleting a space can easily delete all shares in that space, but deleting a folder has to be smarter to invalidate all shares in that folder 🤔 now ... for this issue the ocs share handler which is the consumer for the ListShares call will have to do the Stating ... hm ... maybe if one of the stat calls fails we can indicate that a space is disabled? or we would have to differentiate between space and node ... 🤔 In any case listing shares reuqires a stat anyway ... but why is that still visible ... Ahhhh, because the stat is cached ... but we no longer use tha gateway stat cache ... |
AFAICT this was cause by the stat cache. It has been disabled since rc1 because invalidating entries in the stat cache was too expensive. We currently rely on the more efficient filemetadata cache. I cannot reproduce this on current master. |
should be fixed in RC.2 |
Infinite Scale 3.0.0-rc.1 Community
ownCloud Web UI 7.0.0-rc.32
Steps:
Actual: as a user einstein I don't understand what happens. I haven't any message or notification. I see shared folder and I know that there were files that aren't there now
user can decline share and cannot accept again
for public link available with enabled
drop files
buttonExpect:
The text was updated successfully, but these errors were encountered: