Bug 346626 - webdav ignores <user>@ in URL (to owncloud server) after first connection is established. Always list contents of the same account
Summary: webdav ignores <user>@ in URL (to owncloud server) after first connection is ...
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: webdav (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-25 10:01 UTC by Achim Bohnet
Modified: 2017-07-02 09:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 17.04


Attachments
Webdav of user1 and user2 on same server. User2 lists file of user1 :-( (69.15 KB, image/png)
2016-09-24 21:26 UTC, Achim Bohnet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Bohnet 2015-04-25 10:01:38 UTC
I defined an entry in Networks to access owncloud via webdavs like:

webdavs://user1@owncloud-test.mpe.mpg.de:443/~test/6.0/remote.php/webdav/

Then I've added a second entry in network with another user  user2

webdavs://user2@owncloud-test.mpe.mpg.de:443/~test/6.0/remote.php/webdav/

When I access user2, dolphin shows me the directory listing of user1 not user2

Reproducible: Always

Steps to Reproduce:
1. Login to an owncloud server via webdavs with dolphin
2. webdavs://user1@owncloud-test.mpe.mpg.de:443/~test/6.0/remote.php/webdav/
3. I see the file listing of user1
4. Now open the URL for user2: webdavs://user1@owncloud-test.mpe.mpg.de:443/~test/6.0/remote.php/webdav/

Actual Results:  
I get again the file listing of user1

Expected Results:  
I get the file iisting of user2

owncloud is version 7,0,2   but I saw it for every 7.0* version.
dolphin is 14.12.3
dolphing shows same error in plasma4 and plasma5 sessions.
Comment 1 Frank Reininghaus 2015-04-26 10:06:55 UTC
Thanks for the bug report! I'll reassign to KIO/webdav, which is responsible for accessing webdav URLs.

It would be interesting to know if the same error happens in the file dialog of KF5-based applications (such as KWrite). If it works there, then the bug will most likely be gone as soon as all KDE applications will be based on KF5.
Comment 2 Achim Bohnet 2015-04-29 14:27:51 UTC
Same with kate on Kubuntu 15.04:  kate 5.0.0  from 14.12.3, KF 5.9, plasma 5.3

1) start kate,
2) open  webdavs://user1@owncloud-test.mpe.mpg.de:443/~test/6.0/remote.php/webdav/
3) correct file listing of user1 shows up,   and open a file.
4) ^N + ^O webdavs://user2@owncloud-test.mpe.mpg.de:443/~test/6.0/remote.php/webdav/

=> bug:  Files of user1 are listed not of user2

One can use any other user name.  E.g.  I tried the nonexisting user 'xxxxxxxxxxxxxxxxxxxxx'.
Still user1 files  are listed.

Achim
Comment 3 Achim Bohnet 2015-04-29 15:02:14 UTC
FWIW: Please add the KF5 versions 5.* for kio/webdav.  Version for this bug report should be 5.9 instead of unspecified.  But it can't be choosen as only 4.* versions are listed.  Thx.
Comment 4 Achim Bohnet 2015-11-02 22:20:53 UTC
Bug still there:  webdavs in dolphin 15.08.2, kf5 5.15, qt 5.4.2

When I click in dolphin once at the webdav link of user1 (aka allee) then on user2 (ach), apache2 log of the owncloud server shows:

82.135.77.255 - allee [02/Nov/2015:23:14:27 +0100] "PROPFIND /~test/6.0/remote.php/webdav/ HTTP/1.1" 207 7485 "-" "Mozilla/5.0 (X11; Linux x86_64) KHTML/5.15.0 (like Gecko) Konqueror/5.15"
82.135.77.255 - allee [02/Nov/2015:23:14:27 +0100] "PROPFIND /~test/6.0/remote.php/webdav HTTP/1.1" 207 7485 "-" "Mozilla/5.0 (X11; Linux x86_64) KHTML/5.15.0 (like Gecko) Konqueror/5.15"
82.135.77.255 - ach [02/Nov/2015:23:14:28 +0100] "PROPFIND /~test/6.0/remote.php/webdav/ HTTP/1.1" 207 7485 "-" "Mozilla/5.0 (X11; Linux x86_64) KHTML/5.15.0 (like Gecko) Konqueror/5.15"
82.135.77.255 - ach [02/Nov/2015:23:14:28 +0100] "PROPFIND /~test/6.0/remote.php/webdav HTTP/1.1" 207 7485 "-" "Mozilla/5.0 (X11; Linux x86_64) KHTML/5.15.0 (like Gecko) Konqueror/5.15"
82.135.77.255 - ach [02/Nov/2015:23:14:29 +0100] "PROPFIND /~test/6.0/remote.php/webdav/ HTTP/1.1" 207 1966 "-" "Mozilla/5.0 (X11; Linux x86_64) KHTML/5.15.0 (like Gecko) Konqueror/5.15"

So user is correctly propagated, but filelisting is in both cases the list of user1 (that was used first to login owncloud).    So I assume the the  cookie or whatever owncloud uses to discriminate the user session,   that is shared (bug) and not different for user1 and user2.
Comment 5 Achim Bohnet 2016-09-24 21:24:52 UTC
Bug also in KF5 of kio webdav!   I've retried on neon dev stable distro with dolphin 16.08.1 & kf5 5.26.

Still the same.  Use webdav to access files of user1 @ server1 then access user2 @ server1 -->
files of user1 instead of user2 are shown (see attached screenshot).
Comment 6 Achim Bohnet 2016-09-24 21:26:09 UTC
Created attachment 101261 [details]
Webdav of user1 and user2 on same server.  User2 lists file of user1 :-(
Comment 7 Achim Bohnet 2016-09-24 21:31:25 UTC
Same bug kio - webdav in kwrite 16.08.1
 * open  webdav dir of user1
then
 * open webdavdir of user2 on same server
--> BUG: show files of user1 not user2 :-(

I expect that files of user2 are listed

Seen this in xenial and neon dev stable
Comment 8 Achim Bohnet 2017-07-02 09:52:00 UTC
Fixed in kio 5.35, kio-extras 17.04 in 'Neon User' distro.