-
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
User cannot see the files that are shared with their group. #28
Comments
it seems that the current share manager just retrieves the shared file according to the username. but we should add the group criteria to that method. |
The starting point is the Share20OcsController.php --> getShares function of the files_shareing app |
call hierarchy is : 1- Share20OcsController.php --> getShares() |
at this line: $provider is instantiated from https://github.com/SURFnet/rd-sram-integration/blob/main/federatedgroups/lib/GroupShareProvider.php and because it is inherited from DefaultShareProvider without overriding the |
There is another API call |
I encountered with a important question. If we query shared file based on group name the first user who accept the shared file flag it as accepted for all the group members. so it is dictatorship approach :) that we are familiar with in Iran :(. |
next challenge is finding a way to distinguish between |
Yes, good point! In this case, we can follow the behaviour of local shares to (custom or regular) groups, namely, they are automatically accepted.
Yes, this is milestone 2 |
So if the current behavior (auto accepting) is desired so there is no need to listen to any event anymore. |
so there are a lot of changes that we should perform on : Manager.php |
the same problem is valid for deleting the shared file. if I cannot remove a group shared file independently without affecting other users. |
I did not find any function in the owncloud's sdk to add and accept share meanwhile. I should take a look at custom group code. but as it is understood it is just available for the SaaS and Enterprise version. |
No, it's an app, we're already using it: |
So I checked the custom group behavior. 1- It does not work with what if all group set option true and one of them delete that file. this comment will be updated |
I think maybe in https://github.com/pondersource/core/blob/95792e6/apps/federatedfilesharing/lib/Controller/OcmController.php#L239 we need to check the group name with |
I changed the approach. every incoming federated group share will add an oc_file_external share entry for each group member user. so this resolves the problem and all functionalities are working correctly without any new changes in other places. |
Hm, but that's different from how it works for local group shares, as you described in #28 (comment)
What is "the problem"? Are you referring to your earlier question?
I don't know if it's possible to delete a file that was shared with you. Let's try it! Can we make external group shares work the same way as local group shares? |
Leaving this issue closed as a duplicate of #14. |
I share a file from oc1.docker with a group on oc2.docker.
on oc1 file marked as shared with a group on oc2. docker and also a record had been inserted into oc_share_external table of maria2.docker.
but Marie cannot see the file inside her file browser in the
shared with you
category.The text was updated successfully, but these errors were encountered: