-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Etag doesn't propagate across shared storage boundaries #14726
Comments
Need to find out how OC 6 did it. From what I understand, every share recipient should have their shared folder etag changed and propagated to the root. Note that the sync client currently contains a workaround to not only check the etag of the root but also of all children inside the root. This made the problem harder to detect if the shared folder is in the owner's root folder. (CC @guruz) |
Reproduction steps in unit test form: a1d5922 |
I'll try and have a go at this |
Thanks a lot. We might need to consider propagating etag for the other recipients too, not only owner and uploader. |
I had a look at your unit test and what you do is have "user2" share with "user1" and then when "user2" uploads a file, you expect the recipient's root etag to change, but it doesn't. This is one case. Another case is when "user1" the recipient uploads a file, then the etag of "user2"'s root must also change. We should test both cases. |
(also stealing your unit test for the size propagation test 😉) |
Any update on this? Is there a fix I can test on my 7.0.4 install? |
There's this work in progress PR: #14764 Also that fix is unfortunately quite big and intrusive, so not sure yet about backporting to OC 7. |
@PVince81 wow, this is bad news. I'm still grateful you are trying to fix this, but your answer tells me 2 things:
Just to make this clear (since a lot of developers take opinions and facts as personal), this was not a personal attack. I'm just stunned that a product can fail so miserably in its basic function. I'm still using ownCloud and I think it is a great product overall, but I believe it needs better QA and a more streamlined architecture. |
Yes, I agree that the architecture of OC is not optimal. But it takes time to make it better, as we need to be careful to not break stuff while refactoring. There is still hope for a backportable fix: #14764 (comment) As for QA, this will get better over time, especially that there are now people writing end to end tests. |
Closing as fixed on master / 8.1. Backport possibilities still need to be discussed though. |
See #14596 (comment) for an analysis.
That ticket is about size propagation but in the results you'll see that etag is also not updated.
It used to work in OC 6: #14596 (comment)
And was broken since OC 7: #14596 (comment)
This is when a share recipient uploads a file, the etag must propagate to the owner's storage.
But since OC 7 the propagation stops at the shared folder itself.
Here are the steps again:
Steps to reproduce:
Expected result
Etag of share owner's root changed.
Actual result
Only the etag of "subdir/test" has changed. It wasn't propagated further.
Versions
OC 6: works correctly
OC 7 and OC 8: broken
@icewind1991 @schiesbn
The text was updated successfully, but these errors were encountered: