-
Notifications
You must be signed in to change notification settings - Fork 2.1k
flat federated re-share #24603
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
flat federated re-share #24603
Conversation
|
By analyzing the blame information on this pull request, we identified @nickvergessen, @icewind1991 and @LukasReschke to be potential reviewers |
83ebc1f to
c21ad0a
Compare
|
This pull request is feature complete. Please start to test it and review it... Ignore the failing tests for now. I will fix them. Basically you can test every cracy re-share activity of federated shares you can think of 😉 Also enable the activity and notification app to check their output. |
30a1bc7 to
77f2775
Compare
|
@SergioBertolinSG can you please create a issue on the qa repo so that we track the qa process for thix, thx |
|
AWESOME stuff @schiesbn! |
7cd1c75 to
c0b416c
Compare
|
A question, is this expected or not?:
Observed: userC has now the file twice, second one with (2). Shouldn't him have only one file? |
|
Having a middle server with an old version makes shares not flat. Is this ok? Only flat shares when all server involved have this patch? |
c0b416c to
f339729
Compare
Yes, for old servers (or servers who also implement federated shares but not the flat re-shares) we fall back to the old behavior. |
correct, because the file is still shared from userA to userC. Same as for local re-shares.
This should probably fail because the file is already with userC... I will have a look |
|
A problem found: steps (in all the steps the fed shares are accepted):
Observed: File is still appears as shared (but it was unshared, it doesn't appear in server C). |
ad1f1a7 to
5c38b45
Compare
Should be fixed now. |
should be fixed... @SergioBertolinSG please re-try, thanks! |
I'm seeing the same behaviour, file added again with (2). |
Still happening, userB unshares, but it comes back to the list. |
Just tried it again and can no longer re-produce it. Are you sure that you updated all three servers to the latest version of this branch? The last commit should be c8c213a This is how it looks for me if userB tries to share the file again with userC: |
|
Yes, three servers are in the last commit. Do they need to be fresh installations? |
I would try to make sure that no broken db entries or something similar is in the way |
I can reproduce it... Will look into it. Seems that I misunderstood your steps yesterday and fixed something different 😉 |
|
Mm not sure why it failed last time. After retesting it works fine. ✅ |
|
I've found another problem.
Observed: File is not detected as the same file. It is duplicated. |
fixed, please try again... Thanks! |
|
Works now 👍 |
|
@PVince81 time for the final review... 😄 |
|
We already went through the code together yesterday, so I only reviewed the additional commits. All looks good 👍 |
|
@schiesbn ah, can you rebase and solve the conflicts ? |
752b6a1 to
ca47555
Compare
|
rebased, but I didn't had any merge conflicts... |
|
Yeah, local git is sometimes more clever/efficient than Github. Probably Github is more cautious. |
…request correctly accross share owner and share initiator
in case of federated re-shares the owner can be a remote user. Therefore we can't always use to owner to access the local file
…'t support flat-reshares
ca47555 to
20852fd
Compare
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |

This PR introduces flat federated re-shares. This means that if userA@serverA share a file with userB@serverB and userB decided to reshare the file with userC@serverC the share will be created directly between userA and userC. Still both userA and userB will see the share and will be able to manipulate it, unshare it etc.
This should be a nice performance boost for federated re-shares. Because now everyone is directly connected to the source of the file instead of going through multiple ownClouds.
Further this brings the same behavior we already have for internal shares to federated shares.