-
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
when I share the file with a remote group you cannot see the shared
phrase beside shre command Icon.
#93
Comments
I think the root cause is the result of this request that is made by the file application:
|
guess what? https://github.com/pondersource/core/blob/master/apps/dav/lib/Connector/Sabre/SharesPlugin.php which IShareManager in this line is is this class: https://github.com/pondersource/core/blob/master/lib/private/Share20/Manager.php you can find its instantiation in this line: |
oh, It seems too easy to solve 😄 according to these lines: there is an iterator that iterates all known share providers and gets all shared files from them. these known share providers are listed there: so as a solution, we can just add |
So, I added all of the share types and the getIdentifier function in new created XShareProvider class, but there is an error related to @michielbdejong changes that should be resolved in a pair programming session. at this line:
the rd-sram-integration/federatedgroups/lib/FederatedFileSharing/FedShareManager.php Line 417 in 152b93f
|
so the getAllSharedBy is implemented and all shared files in REMOTE_GROUP are fetched from the database. |
but the response to the PROPFIND request still does not show the share_type |
so I added this Line of code
in this spot: and all the files in the backend responses are marked as |
@soltanireza65 |
have created a PL in pondersource/core#6 the thing that is not working is receiver is not able to accept it. |
I am suspicious about whether your solution is correct or not because I expected that this share request should be sent by Notification.php class that is located in FederatedGroup > lib > FederatedFileSharing. I will check it again to find the should We fix the problem from an upper layer or should continue with your solution |
so I found that the FederatedGroupShareProvider should be copied from lib\FederatedFileSharing. I did those modifications. this comment is related to #110 |
So, currently we have two problems: 1- the 2- the shared file is accepted but it is not listed in receiver side (marie). and this Error is shown in side the log:
|
I finally found the code location that was responsible to marking the file as shared file. |
So finally I found the code that indicate |
good news is @soltanireza65 had been change this line of code so far: I should change this file: |
Done and shared flag is visible beside shared file. 🏁 |
I faced with another problem. when I clicked on file row and the sidebar opens the flag will be disappeared. |
I found that when we click on a file there is three API calls: ℹ️ 1- GET /ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2Fgroup&reshares=true HTTP/1.1 2- GET /ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2Fgroup&shared_with_me=true HTTP/1.1 3- PROPFIND /remote.php/dav/systemtags-relations/files/15 HTTP/1.1 which the first one does not return the desired information about share file with REMOTE_GROUP |
So I found the final solution: so we should override that function. it could be helpful. |
so finally I resolve this issue Completly by this commit: 🎉 🏁 |
as you can see the shells file is shared:

but the

shared
flag is not visible in the sender panel.The text was updated successfully, but these errors were encountered: