Accounts mixed on webdav sync
This bug is tested on two different servers. This bug seems to be introduced between oc6.0.4 and oc7.0.1. oc6 seems not affected. If a different alias is used for each account, everything works as expected.
Steps to reproduce
- Create 2 accounts on an owncloud server
- Create a text file test1.txt in account A and test2.txt in account B
- Create both accounts in PDFexpert
- Sync account A in PDFexpert
- Sync account B in PDFexpert
Expected behaviour
Account A contains a file test1.txt, account B contains a file test2.txt
Actual behaviour
Both accounts are equal. Account A has a file test2.txt and there is no test1.txt. Account B is correct. The incorrect file list of A is not synced back to owncloud.
Server configuration
Operating system: Ubuntu 14.04 / Ubuntu 12.04
Web server: Apache/2.4.7 (Ubuntu) / Apache/2.2.22 (Ubuntu)
Database: MySQL 5.5.38 / Postgresql
PHP version: 5.5.9-1ubuntu4.4 / 5.3.10-1ubuntu3.14 with Suhosin-Patch
ownCloud version: 7.0.1 (ubuntu) / 7.0.2 (git)
Updated from an older ownCloud or fresh install: updated from oc7.0.0 / updated from oc6.0.4
List of activated apps: Uppon request
The content of config/config.php: Uppon request
Are you using external storage, if yes which one: local storage / local storage
Are you using encryption: no / disk encryption
Client configuration
Browser: PDFexpert 4.7.8, 5.2 and Documents 5
Operating system: iOS 7 and iOS 8
Logs
Web server error log
10.74.0.203 - test1 [02/Oct/2014:20:45:32 +0200] "OPTIONS /remote.php/webdav HTTP/1.1" 200 2181 "-" "ReaddleDAV PDFExpert/4.7.7.2 (redirects)"
10.74.0.203 - test2 [02/Oct/2014:20:45:50 +0200] "OPTIONS /remote.php/webdav HTTP/1.1" 200 1302 "-" "ReaddleDAV PDFExpert/4.7.7.2 (redirects)"
10.74.0.203 - test1 [02/Oct/2014:20:45:51 +0200] "OPTIONS /remote.php/webdav HTTP/1.1" 200 965 "-" "ReaddleDAV PDFExpert/4.7.7.2 (redirects)"
10.74.0.203 - test1 [02/Oct/2014:20:45:51 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 3562 "-" "ReaddleDAV PDFExpert/4.7.7.2 (redirects)"
10.74.0.203 - test2 [02/Oct/2014:20:46:03 +0200] "OPTIONS /remote.php/webdav HTTP/1.1" 200 1158 "-" "ReaddleDAV PDFExpert/4.7.7.2 (redirects)"
10.74.0.203 - test2 [02/Oct/2014:20:46:03 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 3562 "-" "ReaddleDAV PDFExpert/4.7.7.2 (redirects)"
ownCloud log (data/owncloud.log)
No entries
Browser log
Not available
I can reproduce it with Documents 5.2 by Readdle and ownCloud 7.0.2
@cosenal FYI This is the issue @kwillems talked to you about on irc.
What do you mean with "sync with PDFExpert" ? Is it a third party sync client or is it a browser ?
Can you check in the ownCloud web UI (with Firefox, Chrome or Safari) whether the files are in the correct accounts ?
In any case, it looks like there could be a session mix up on the client side.
PDFExpert is an iPad app that uses webdav to connect to Owncloud. In the web UI the files are in the correct accounts. There is no syncing back. It seems like the file listing for the wrong account is fetched.
A session mix up could be the main problem. As stated this is introduced between oc6.0.4 and oc7.0.1. Did the session handling change? Nothing has changed on the client side.
I think there were fixes related to the session. Not sure on what parts the mix up could happen. @LukasReschke any idea ?
Maybe the cookie is resent when syncing. - Can anyone of you sniff the traffic that PDFExpert sends?
@pluijm I sent some dumps to @LukasReschke, no need for you to redo the job
Is there any news on this one? The problem still occurs and is very annoying.
For good understanding: this bug is NOT limited to PDFExpert or any app from Readdle. I've just installed an app called 'Webdav Navigater' (https://itunes.apple.com/nl/app/webdav-navigator/id382551345?mt=8) and the same bug occurs.
Seems to be related to the cookie handling. I've scheduled a patch for 8.0 – stay tuned…
Is this related to https://github.com/owncloud/core/issues/13245 ?
Yes
Fix is at https://github.com/owncloud/core/pull/13416 – please test and report back.
OP's issue is still there. Tested with PDFExpert 5.2.2.8
That's confusing. Because I use "PDFExpert 5.2.3.9" (probably a beta version since I got access to their beta software testing pool) and it just works fine here.
What did you do exactly? – Does it help if you remove and re-add the account? (maybe some cache) Or can you force-close the application, does that help?
If not it would be cool if you could reset the PDFExpert oC accounts and reset-up them and post steps to reproduce. Because it locally works just fine for me :(
I did try removing and adding the accounts, and force-close the app, but the problem is still there.
The exact steps are the ones reported by the OP and then:
- Add account1 on Documents or PDFExpert, log in with user1.
- Add account2 on Documents or PDFExpert, and no matter what user you log in with, it goes to user1's home folder.
@pluijm @kwillems A possible fix is in master now, can you check if it solves the issue on your machines?
Are those accounts on the same oC instance / domain or a different one?
same instance
@cosenal I will check, but at this moment, there are some issues in our personal lives. Will check in when I've checked with master.
how to continue on this one? I'd vote for moving this to 8.1 and mark as needs-more-info @LukasReschke agreed?