-
Notifications
You must be signed in to change notification settings - Fork 3
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
What if reshare happens to a group that the owner belongs to? #142
Comments
In other words: |
After spending a few hours investigating the reshare problem, I have come up with 3 solutions:
Solution 1 is the quickest as it is mostly already done. But as it already relies on the My assessment is that since we are planning to work on a new version of the OCM, the federatedfilesharing app will be effectively deprecated and need major changes to it. At which point all our current work will be null as well. Hence, I suggest the quickest solution which is solution 1. And if we are not looking at the OwnCloud conforming to some new OCM specification any time soon, then solution 3 is my go to. |
I don't think you accurately reworded Navid's question, I think you gave an answer to it! :)
I think you listed 3 code architectures here
How does that option affect our goal of keeping the changes we make in owncloud/core to a minimum? Remember this app is part of owncloud/core, so al we're allowed to do in it is insert if-statements (or catch-statements, I think that's fine too) that divert the code path if one or both of our apps are installed, and that do nothing otherwise. |
@yasharpm regarding your discussion about code architecture, maybe you can split that out to a separate issue? And regarding @navid-shokri 's original question, I think we should test how it is handled if this happens on a single server: I think that, although resharing to the resource owner is prohibited, resharing to a group of which the resource owner is a member is not. So we don't have to do any lookups regarding group memberships of I think processing of reshare-request notifications is already implemented on the sender side, and our additional share type should not have much effect on that code, right? The only thing we need to add is reshare to a remote group (for @yasharpm's OCM app) and reshare to a mixed group (for @navid-shokri's FG app). In both cases, the answer to "what if reshare happens to a group that the owner belongs to?" is, I think "no special requirements, just reshare as usual"! :) |
It's getting closer to understanding the question and hence the answer.
There is a fundamental problem here. Different share type implementations need to be aware of each other. If I want to share something to a user that has been shared with me as a group, the reshare to user logic has to find the share in the shared to group table (i.e.
Hence we can not longer be as passive to OC managers' liking. If we want share to groups to work, we have no choice but to change federatedfilesharing in a way that respects a deeper level of intervention. Or completely steal the control from it which is solution 2. |
Ah but that is for the process at the receiver's side, that leads up to sending the reshare-request notification. |
Ah I think I had to create a separate issue! Apologies, just because the issue was related and recent, I assumed it is about the issue I raised. |
This potentially affects our decision from 19 December - discussing in a video call now. |
As discussed, we are not going to work on this issue during this sprint.
|
assume this scenario:
user1@oc1
that belongs togroup1
share a file with an entity (user/group) onoc2
and then theuser2@oc2
share the file again withgroup1@oc1
? ❓what should be our reaction?
The text was updated successfully, but these errors were encountered: