Federated shared subfolder not syncing.
Steps to reproduce
- create user1 and user2 accounts.
- user1 syncs root folder in desktop sync client (using default client settings).
- user1 create a directory A and subdirectory B in A.
- user1 share a subdirectory B whith user2 using federated cloud sharing (user2@myowncloudurl) whith edit permissons.
- user2 access accross web interface and accept the new shared folder.
- user2 upload f1 file into B folder.
Expected behaviour
user1 sync client download f1 in B folder.
Actual behaviour
The f1 file (uploaded by user2) is not synced in user1 computer. But if user1 move B subdir to root folder everythings work properly.
Server configuration
Operating system: Debian 7 Web server: Apache 2.2.22 Database: Mysql 5.5 PHP version: 5.5.30 (Apache lib mod) ownCloud version: 8.1.4 Updated from an older ownCloud or fresh install: Upgraded across all versions since Owncloud 4.5
Client configuration
Operating system: Windows 10 ownCloud client version: 2.0.2
@schiesbn any idea?
Pretty sure I've seen this before. If someone finds the duplicate, please link it. Thanks.
I tested with owncloud 8.2 and so happen. Someone has been able to reproduce?
Same issue happens in OC 8.2.1 :-(
Any news about this?
@schiesbn can you have a look ?
@icewind1991 is that the update detection issue ?
I just experienced a very similar problem that was reported by one of our users. Our scenario differs a little but I think it has the same origin as the one described here.
- User1 either shares via federated sharing or with a link with user2 (I tried both with the same results)
- User2 accepts the share respectively adds it to his ownCloud
- User2 creates another folder in his local file system in the shared folder and a file in this folder (but I think the latter is not necessary to trigger the error)
- The desktop client of user2 uploads the new folder (and the file within) and his other clients download those within 30 seconds
- Now you would expect user1's desktop client to do the same, but it doesn't. User1 has to restart his client in order to get the files downloaded to his desktop
The error also occurs if user1 and user2 are located on the same server. (Update: We are running 8.1.4EE)
I checked the (F12) Logs of the client that should have downloaded the files, there were no entries.
@MorrisJobke Could you check the status?
00004741
I just tested the steps of the initial post and this works in current master:
Etags before the upload:
morrisjobke@gymir:~ » curl -i -X PROPFIND http://localhost/master/remote.php/webdav -u abc:abc -s | egrep "href|etag"
<d:href>/master/remote.php/webdav/</d:href>
<d:getetag>"56bb339670b25"</d:getetag>
<d:href>/master/remote.php/webdav/A/</d:href>
<d:getetag>"56bb3396709e1"</d:getetag>
<d:href>/master/remote.php/webdav/welcome.txt</d:href>
<d:getetag>"3387fbfb7175404a7ae56fa7a2096139"</d:getetag>
morrisjobke@gymir:~ » curl -i -X PROPFIND http://localhost/master/remote.php/webdav/A -u abc:abc -s | egrep "href|etag"
<d:href>/master/remote.php/webdav/A/</d:href>
<d:getetag>"56bb3396709e1"</d:getetag>
<d:href>/master/remote.php/webdav/A/B/</d:href>
<d:getetag>"56bb339670064"</d:getetag>
etags after the upload:
morrisjobke@gymir:~ » curl -i -X PROPFIND http://localhost/master/remote.php/webdav -u abc:abc -s | egrep "href|etag"
<d:href>/master/remote.php/webdav/</d:href>
<d:getetag>"56bb343f00d4b"</d:getetag>
<d:href>/master/remote.php/webdav/A/</d:href>
<d:getetag>"56bb343f00bb8"</d:getetag>
<d:href>/master/remote.php/webdav/welcome.txt</d:href>
<d:getetag>"3387fbfb7175404a7ae56fa7a2096139"</d:getetag>
morrisjobke@gymir:~ » curl -i -X PROPFIND http://localhost/master/remote.php/webdav/A -u abc:abc -s | egrep "href|etag"
<d:href>/master/remote.php/webdav/A/</d:href>
<d:getetag>"56bb343f00bb8"</d:getetag>
<d:href>/master/remote.php/webdav/A/B/</d:href>
<d:getetag>"56bb343f00a8f"</d:getetag>
I could reproduce this in stable8.2:
The etag of the folder B has changed, but for folder A this has not changed:
Before:
morrisjobke@gymir:~ » curl -X PROPFIND http://localhost/master/remote.php/webdav -u abc:abc -s | xmllint --format "-"| egrep "href|etag"
<d:href>/master/remote.php/webdav/</d:href>
<d:getetag>"56bb355d0dea8"</d:getetag>
<d:href>/master/remote.php/webdav/A/</d:href>
<d:getetag>"56bb355d0e06d"</d:getetag>
<d:href>/master/remote.php/webdav/welcome.txt</d:href>
<d:getetag>"b6ac479a5830082e975888e5f9d9d3ad"</d:getetag>
morrisjobke@gymir:~ » curl -X PROPFIND http://localhost/master/remote.php/webdav/A -u abc:abc -s | xmllint --format "-"| egrep "href|etag"
<d:href>/master/remote.php/webdav/A/</d:href>
<d:getetag>"56bb355d0e06d"</d:getetag>
<d:href>/master/remote.php/webdav/A/B/</d:href>
<d:getetag>"56bb355d0d53b"</d:getetag>
After the upload:
morrisjobke@gymir:~ » curl -X PROPFIND http://localhost/master/remote.php/webdav -u abc:abc -s | xmllint --format "-"| egrep "href|etag"
<d:href>/master/remote.php/webdav/</d:href>
<d:getetag>"56bb355d0dea8"</d:getetag>
<d:href>/master/remote.php/webdav/A/</d:href>
<d:getetag>"56bb355d0e06d"</d:getetag>
<d:href>/master/remote.php/webdav/welcome.txt</d:href>
<d:getetag>"b6ac479a5830082e975888e5f9d9d3ad"</d:getetag>
morrisjobke@gymir:~ » curl -X PROPFIND http://localhost/master/remote.php/webdav/A -u abc:abc -s | xmllint --format "-"| egrep "href|etag"
<d:href>/master/remote.php/webdav/A/</d:href>
<d:getetag>"56bb355d0e06d"</d:getetag>
<d:href>/master/remote.php/webdav/A/B/</d:href>
<d:getetag>"56bb36585781d"</d:getetag>
@icewind1991 I guess this is because of the recent changes to the etag propagation that now works on a per-storage level. Could you link to that issue/PR? I only found the latest cleanups: https://github.com/owncloud/core/pull/20875
@schiesbn @icewind1991 ping
@MorrisJobke Per-storage level etag propagation is a 9.0 feature, not 8.2.2.
@MorrisJobke Per-storage level etag propagation is a 9.0 feature, not 8.2.2.
@Helios07 As said - sadly we can't backport this to stable8.2 because it involves too many changes.
This is quite critical for @Helios07 - @PVince81 @icewind1991 is there any chance to implement a hot fix for the stable8.2 branch?
@MorrisJobke will be looking into something quick
@schiesbn any chance you can have an urgent look at this please?
I can re-produce it. What I don't get at the moment... but I will try to find out: We are talking about etag propagation at the owner side, not at the recipient side. So there are no different sorages, etc. Just a folder structure A/B. If I upload a file to B with webdav (cadaver) the etag gets propagated correctly. If I upload a file from a second ownCloud which mounted B as a federated share we only update the etag of B but not of A. Even if technically it is in both cases a webdav upload to A/B. What's the difference here?
Weird... There should be no difference if it's a webdav upload, it should always propagate the etag up to the root (well, up to "/files" at least)
Yes, that's really weird. For some reasons when we propagate the changes from the federated share upload the path is //filename while on the webdav upload the path is /A/B/filename. That explains while the propagation fails for a federated share upload. In this case it only propagates the changes up to '/' which seems to be 'B'. But I couldn't find out why the paths are different. It looks like we interpret the target folder ('B') as the storage root, but why?
@icewind1991 any idea where this strange behavior comes from?
iirc the external share dav works on a View that's rooted at the share root (/A/B) and not the user's home folder and propagation (in 8.2) goes up to the view's root.
it's fixed in 9.0 because the view root no longer has any impact on propagation