core icon indicating copy to clipboard operation
core copied to clipboard

Accounts mixed on webdav sync

Open pluijm opened this issue 12 years ago • 23 comments

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

  1. Create 2 accounts on an owncloud server
  2. Create a text file test1.txt in account A and test2.txt in account B
  3. Create both accounts in PDFexpert
  4. Sync account A in PDFexpert
  5. 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

pluijm avatar Oct 02 '14 18:10 pluijm

I can reproduce it with Documents 5.2 by Readdle and ownCloud 7.0.2

cosenal avatar Oct 03 '14 04:10 cosenal

@cosenal FYI This is the issue @kwillems talked to you about on irc.

pluijm avatar Oct 03 '14 06:10 pluijm

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.

PVince81 avatar Oct 06 '14 12:10 PVince81

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.

pluijm avatar Oct 06 '14 12:10 pluijm

I think there were fixes related to the session. Not sure on what parts the mix up could happen. @LukasReschke any idea ?

PVince81 avatar Oct 06 '14 13:10 PVince81

Maybe the cookie is resent when syncing. - Can anyone of you sniff the traffic that PDFExpert sends?

LukasReschke avatar Oct 06 '14 13:10 LukasReschke

@pluijm I sent some dumps to @LukasReschke, no need for you to redo the job

cosenal avatar Oct 06 '14 15:10 cosenal

Is there any news on this one? The problem still occurs and is very annoying.

kwillems avatar Jan 09 '15 12:01 kwillems

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.

kwillems avatar Jan 10 '15 14:01 kwillems

Seems to be related to the cookie handling. I've scheduled a patch for 8.0 – stay tuned…

LukasReschke avatar Jan 11 '15 14:01 LukasReschke

Is this related to https://github.com/owncloud/core/issues/13245 ?

PVince81 avatar Jan 12 '15 11:01 PVince81

Yes

LukasReschke avatar Jan 12 '15 11:01 LukasReschke

Fix is at https://github.com/owncloud/core/pull/13416 – please test and report back.

LukasReschke avatar Jan 16 '15 13:01 LukasReschke

OP's issue is still there. Tested with PDFExpert 5.2.2.8

cosenal avatar Jan 20 '15 00:01 cosenal

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 :(

LukasReschke avatar Jan 20 '15 09:01 LukasReschke

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?

cosenal avatar Jan 23 '15 00:01 cosenal

Are those accounts on the same oC instance / domain or a different one?

LukasReschke avatar Jan 23 '15 00:01 LukasReschke

same instance

cosenal avatar Jan 23 '15 00:01 cosenal

@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.

pluijm avatar Jan 27 '15 09:01 pluijm

how to continue on this one? I'd vote for moving this to 8.1 and mark as needs-more-info @LukasReschke agreed?

DeepDiver1975 avatar Jan 27 '15 10:01 DeepDiver1975