WebDAV-Filelocking does not work in Multi-User Environment
Situation
General Conditions
I have set up 3 users called "User1", "User2" and "User3" inj my oc-instance. User3 is sharing one folder with one MS-Office File (docx) inside with User1 and User2. He is giving them full access rights (create, update, delete) through the folder.
User1 and User2 are using Webdrive to access the ownCloud. Inside Webdrive they have activated these 2 settings:
- Auto DAV Locking
- Basic Cache Settings are set to "Multi-User ..." so that the file is downloaded from the server and not taken from local cache in case it was updated on server-side.
Expected behaviour
When User1 opens the the MS-Office File it should always be locked on the server so that another user would get a message which tells him that the file is locked ...
Actual behaviour
This only works as long as you are logged in (from 2 different computers) as the same oc-user. It does not work if you are logged in (from 2 different computers) with different oc-users. The worst this about it: If one of the users decides to overwrite the file he can do so. But if the other user also tries to overwrite the file from his side, the file gets deleted.
Steps to reproduce
Case 1
- set up the oc with 3 Users (User1, User2, User3)
- User1 shares a folder with User2
- User1 uploads an MS-Word File inside his shared folder (which is inside his home-dir)
- User1 opens the MS-Word File with WebDAV
- User2 opens the MS-Word File from the Folder "Shared" at the same time
Case 2
- set up the oc with 3 Users (User1, User2, User3)
- User3 shares a folder with User1 and User2
- User3 uploads an MS-Word File inside his shared folder
- User1 opens the MS-Word File from the Folder "Shared" with WebDAV
- User2 opens the MS-Word File from the Folder "Shared" at the same time
Case 3: Delete File
- Open the file from 2 computers with 2 different oc-accounts
- Overwrite the file from computer1
- do the same from computer2 - you are then asked to "save the file as ..."
- Click on cancel
- Result: File is deleted but a new file which is named "hash-value.tmp" like "8hegjhqwe.tmp" is created
Log
Please take a look at the log from our server. We have actually done 4 different tests, 2 of them passed, two failed.
Server configuration
Operating system: ubuntu 12.04 LTS Web server: apache 2.2.22 Database: MySQL 5.5 PHP version: 5.3.10 ownCloud version: 5.0.11
Client configuration
Browser: none WebDrive 11.0.2789
- Auto DAV Locking
- Basic Cache Settings are set to "Multi-User ..." so that the file is downloaded from the server and not taken from local cache in case it was updated on server-side.
Operating system:
Win 7 64bit
Log
Test1 (1 oc-User, 2 Computers, work in Home-Dir) --> OK
From Computer1 I'm logged in as "User1" and I'm opening the file:
my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:01:39 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 901 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:01:39 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:01:39 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files HTTP/1.1" 207 1337 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:01:39 +0200] "GET /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 200 13169 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:01:40 +0200] "LOCK /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 200 1136 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:01:41 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 404 743 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:01:44 +0200] "PUT /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 201 473 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:01:44 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 1469 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:01:44 +0200] "PROPPATCH /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 948 "-" "WebDrive 11.0.2789 DAV"
From Computer2 I'm logged in as "User1" and I also open the file, which is still opened on Computer1:
my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:01 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 1239 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:01 +0200] "GET /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 200 13170 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:01 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:01 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files HTTP/1.1" 207 1337 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:01 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files HTTP/1.1" 207 3487 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:04 +0200] "LOCK /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 423 785 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:05 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 1685 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:05 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 1238 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:05 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 902 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:02:05 +0200] "GET /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 200 648 "-" "WebDrive 11.0.2789 DAV"
--> Result: The File is locked ... which is correct
Test2 (1 oc-User, 2 Computers, work in Shared-Dir from another User) --> OK
From Computer1 I'm logged in as "User1" and I'm opening the file:
my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:41 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 2987 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:41 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:41 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:41 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 2986 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:41 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:41 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:41 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 1329 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:41 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test HTTP/1.1" 207 1334 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:42 +0200] "GET /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 200 13107 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:42 +0200] "LOCK /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 200 1133 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:42 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 404 740 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:42 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 404 741 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:42 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 404 741 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:43 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 404 741 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:43 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 404 741 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:43 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 404 740 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:43 +0200] "LOCK /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 201 1138 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:43 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 1234 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:44 +0200] "PUT /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 423 775 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:44 +0200] "PUT /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 423 775 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:44 +0200] "PUT /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 423 775 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:44 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 1234 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:44 +0200] "DELETE /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 423 775 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:05:48 +0200] "UNLOCK /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 204 453 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:01 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 1343 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:02 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:02 +0200] "LOCK /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 200 1133 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:02 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 1676 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:02 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 2986 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:02 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:02 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 1234 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:02 +0200] "GET /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 200 484 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:03 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test HTTP/1.1" 207 1334 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:03 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test HTTP/1.1" 207 3684 "-" "WebDrive 11.0.2789 DAV"
From Computer2 I'm logged in as "User1" and I also open the file, which is still opened on Computer1:
my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:27 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 1233 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:28 +0200] "GET /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 200 13107 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:28 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:28 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 1329 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:28 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 2198 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:28 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test HTTP/1.1" 207 1334 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:28 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test HTTP/1.1" 207 3684 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:30 +0200] "LOCK /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 423 782 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:30 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 1679 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:30 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 1232 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:31 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 1234 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:06:31 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 1234 "-" "WebDrive 11.0.2789 DAV"
--> Result: The File is locked ... which is correct
Test3 (User1 is sharing with User2, User1 works inside his Home-Dir, User2 works in the shared-Dir) --> NOK
From Computer2 I'm logged in as "User2":
my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:13 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1323 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:13 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/TestUser1.docx HTTP/1.1" 207 1353 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:13 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files HTTP/1.1" 207 1345 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:13 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/TestUser1.docx HTTP/1.1" 207 907 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:13 +0200] "LOCK /mytest/remote.php/webdav/Shared/TestUser1Files/TestUser1.docx HTTP/1.1" 200 1143 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:13 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 1329 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:14 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 3005 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:14 +0200] "PUT /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 201 472 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:14 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 1352 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:14 +0200] "PROPPATCH /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 955 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:23:14 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 909 "-" "WebDrive 11.0.2789 DAV"
From Computer1 I'm logged in as "User1":
my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:02 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 901 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:02 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:02 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:02 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files HTTP/1.1" 207 1337 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:02 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files HTTP/1.1" 207 3149 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:03 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 1345 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:03 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:03 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:03 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:04 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:05 +0200] "LOCK /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 200 1136 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:05 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 902 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:05 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 902 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:05 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 902 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:24:05 +0200] "GET /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 200 648 "-" "WebDrive 11.0.2789 DAV"
--> Result: The File is not locked which is not correct!
Repeat the test the other way around:
From Computer1 I'm logged in as "User1":
my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:18 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:18 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:18 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:18 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files HTTP/1.1" 207 1337 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:19 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:19 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:19 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:20 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 207 900 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:20 +0200] "LOCK /mytest/remote.php/webdav/TestUser1Files/TestUser1.docx HTTP/1.1" 200 1136 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:20 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 404 743 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:21 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 404 744 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:21 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 404 744 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:25:21 +0200] "PROPFIND /mytest/remote.php/webdav/TestUser1Files/~$stUser1.docx HTTP/1.1" 404 743 "-" "WebDrive 11.0.2789 DAV
From Computer2 I'm logged in as "User2":
my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:36 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1323 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:36 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files HTTP/1.1" 207 1345 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:36 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/TestUser1.docx HTTP/1.1" 207 1353 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:36 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files HTTP/1.1" 207 3853 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:36 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/TestUser1.docx HTTP/1.1" 207 907 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:36 +0200] "LOCK /mytest/remote.php/webdav/Shared/TestUser1Files/TestUser1.docx HTTP/1.1" 200 1143 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:36 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 1329 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:36 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 3005 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:37 +0200] "PUT /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 201 472 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:37 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 1476 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:37 +0200] "PROPPATCH /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 955 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:37 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 909 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:37 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/Thumbs.db HTTP/1.1" 207 902 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:38 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/Thumbs.db HTTP/1.1" 207 902 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:38 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/f5-auth.png HTTP/1.1" 207 904 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:38 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/f5-auth.png HTTP/1.1" 207 904 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:38 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 1476 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:28:38 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/TestUser1Files/~$stUser1.docx HTTP/1.1" 207 909 "-" "WebDrive 11.0.2789 DAV"
--> Result: The File is not locked which is not correct!
Test4 (User1 and User2 are both working in the shared Dir of User3) --> NOK!
From Computer2 I'm logged in as "User2":
my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:03 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 1343 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:03 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test HTTP/1.1" 207 1335 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:03 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:03 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test HTTP/1.1" 207 2211 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "LOCK /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 200 1133 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 1329 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 2186 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 3005 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 2186 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 2186 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:04 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:05 +0200] "PUT /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 201 472 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:05 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 1342 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:05 +0200] "PROPPATCH /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 945 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User2 [10/Oct/2013:16:51:05 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 899 "-" "WebDrive 11.0.2789 DAV"
From Computer1 I'm logged in as "User1":
my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:18 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 1343 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:18 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:18 +0200] "PROPFIND /mytest/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:19 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 1329 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:19 +0200] "PROPFIND /mytest/remote.php/webdav/Shared HTTP/1.1" 207 2198 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:19 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test HTTP/1.1" 207 1334 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:19 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test HTTP/1.1" 207 3016 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:19 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:19 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:20 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:21 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:21 +0200] "LOCK /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 200 1133 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:21 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 899 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:21 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 899 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:21 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 899 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:21 +0200] "GET /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 200 648 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:22 +0200] "UNLOCK /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 204 452 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:22 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:22 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:22 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:23 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:23 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:24 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:24 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:24 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:29 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 207 897 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:29 +0200] "LOCK /mytest/remote.php/webdav/Shared/Test/TestUser3.docx HTTP/1.1" 200 1133 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:29 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 1342 "-" "WebDrive 11.0.2789 DAV" my-owncloud.com:443 10.240.1.13 - User1 [10/Oct/2013:16:51:29 +0200] "PROPFIND /mytest/remote.php/webdav/Shared/Test/~$stUser3.docx HTTP/1.1" 207 899 "-" "WebDrive 11.0.2789 DAV"
--> Result: The File is not locked which is not correct!
@hanibal8 there is pull request for you to test - give it a try and let me know - THX
thx @DeepDiver1975!
I will test it as soon as i am home.
Backporting to oC 5 should not be a problem?
Backporting to oC 5 should not be a problem?
Because the change is isolated t the locking plugin I see no problem with a backport
@Gomez does it work? THX
Unfortunately does not work.
What i have done:
- Checkout out master, apply 5342 patch
- added two user
- Shared a txt from user1 to user2 (full access)
- On VM 1 installed webdrive 11 with user: ingo (Auto DAV Locking enabled for .txt, Caching Multiuser)
- On VM 2 installed webdrive 11 with user: thilo (Auto DAV Locking enabled for .txt, Caching Multiuser)
- Opened the textfile with ingo wrote some text in it (not saved, yet)
- Opened the textfile with thilo wrote some text in it, and saved).
- The file is overriden, was not locked.
Logfile: 127.0.0.1 - thilo [23/Oct/2013:09:38:56 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt HTTP/1.1" 207 982 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:38:56 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt HTTP/1.1" 207 416 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:38:56 +0200] "PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1" 207 835 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:12 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 207 975 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:12 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 207 409 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:13 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner HTTP/1.1" 207 849 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:32 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 207 975 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:32 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 207 409 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:33 +0200] "LOCK /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 200 635 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:33 +0200] "UNLOCK /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 204 - "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:33 +0200] "DELETE /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 204 - "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:33 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 404 305 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:33 +0200] "PUT /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 201 - "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:33 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 207 856 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:34 +0200] "PROPPATCH /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 207 490 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:34 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 207 414 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:34 +0200] "MOVE /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 201 - "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:34 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 207 975 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:34 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 207 409 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:35 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner HTTP/1.1" 207 849 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:36 +0200] "PROPFIND /owncloud/remote.php/webdav/Test%20Ordner HTTP/1.1" 207 1847 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:56 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt HTTP/1.1" 207 982 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:56 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt HTTP/1.1" 207 416 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:56 +0200] "LOCK /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt HTTP/1.1" 200 636 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:56 +0200] "UNLOCK /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt HTTP/1.1" 204 - "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:56 +0200] "DELETE /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt HTTP/1.1" 204 - "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:57 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 404 312 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:57 +0200] "PUT /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 201 - "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:57 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 207 863 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:57 +0200] "PROPPATCH /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 207 497 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:58 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 207 421 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:58 +0200] "MOVE /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt.etmp HTTP/1.1" 201 - "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:58 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt HTTP/1.1" 207 982 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:58 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner/welcome.txt HTTP/1.1" 207 416 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:39:59 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner HTTP/1.1" 207 856 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:40:00 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared/Test%20Ordner HTTP/1.1" 207 1861 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:40:00 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared HTTP/1.1" 207 842 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:40:00 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared HTTP/1.1" 207 1721 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:40:00 +0200] "PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1" 207 835 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:40:00 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared HTTP/1.1" 207 842 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [23/Oct/2013:09:40:00 +0200] "PROPFIND /owncloud/remote.php/webdav/Shared HTTP/1.1" 207 1721 "-" "WebDrive 11.0.2789 DAV"
@Gomez can you please paste the content of the table oc_locks? THX
Empty.
Opened the file on both vms...
127.0.0.1 - ingo [23/Oct/2013:09:39:33 +0200] "LOCK /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 200 635 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - ingo [23/Oct/2013:09:39:33 +0200] "UNLOCK /owncloud/remote.php/webdav/Test%20Ordner/welcome.txt HTTP/1.1" 204 - "-" "WebDrive 11.0.2789 DAV"
lock followed by immediate unlock - how is this going to work at all?
Isnt it correct without the autolocking feature enabled? Lock on write access and unlock when finished...
the file is locked and unlocked the same second.
the put operation is sent after unlock.
this is not how I would expect this to happen
I have done a other test with explicit locking over the context menu in webdrive:
As user thilo i lock the file in VM1: Lock file in webdrive: 127.0.0.1 - thilo [28/Oct/2013:17:05:47 +0100] "PROPFIND /owncloud/remote.php/webdav/Testfile HTTP/1.1" 207 957 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [28/Oct/2013:17:05:47 +0100] "PROPFIND /owncloud/remote.php/webdav/Testfile HTTP/1.1" 207 392 "-" "WebDrive 11.0.2789 DAV" 127.0.0.1 - thilo [28/Oct/2013:17:05:50 +0100] "LOCK /owncloud/remote.php/webdav/Testfile HTTP/1.1" 200 620 "-" "WebDrive 11.0.2789 DAV"
Delete the file on the other VM (from web, same user):
::1 - - [28/Oct/2013:17:05:59 +0100] "GET /owncloud/core/img/actions/delete-hover.svg?2013-10-23T05:56:40Z HTTP/1.1" 304 - "http://localhost/owncloud/remote.php/core.css?v=03b264c595403666634ac75d828439bc" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Firefox/24.0" ::1 - - [28/Oct/2013:17:06:00 +0100] "GET /owncloud/core/img/actions/delete-hover.png?2013-10-23T05:56:40Z HTTP/1.1" 304 - "http://localhost/owncloud/remote.php/core.css?v=03b264c595403666634ac75d828439bc" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Firefox/24.0" ::1 - - [28/Oct/2013:17:06:00 +0100] "GET /owncloud/core/img/loading.gif?2013-10-23T05:56:40Z HTTP/1.1" 304 - "http://localhost/owncloud/remote.php/core.css?v=03b264c595403666634ac75d828439bc" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Firefox/24.0" ::1 - - [28/Oct/2013:17:06:00 +0100] "POST /owncloud/index.php/apps/files/ajax/delete.php HTTP/1.1" 200 152 "http://localhost/owncloud/index.php/apps/files" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Firefox/24.0" ::1 - - [28/Oct/2013:17:06:00 +0100] "POST /owncloud/index.php/apps/files_trashbin/ajax/isEmpty.php HTTP/1.1" 200 45 "http://localhost/owncloud/index.php/apps/files" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Firefox/24.0"
The file is in oc_lock:
-- Dumping data for table oc_locks
INSERT INTO oc_locks (id, userid, owner, timeout, created, token, scope, depth, uri) VALUES
(1, 'thilo', ' (WebDrive-thilo) Share=0', 300, 1382976047, '7da949f0-623d-403f-8420-bba4201ab3ad', 2, -1, 'testfile'),
(2, NULL, ' (WebDrive-thilo) Share=0', 300, 1382976202, '1507b1e1-3e7f-4eb8-b5bd-3abc952d9dc1', 2, -1, NULL),
(3, 'thilo', ' (WebDrive-thilo) Share=0', 300, 1382976350, '61e715a9-c1b9-4d49-a5cd-61de03a1655c', 2, -1, 'Testfile');
@DeepDiver1975 Could you figure something out?
Delete the file on the other VM (from web, same user):
This will not work at all - the implemented locking mechanism is WebDAV only. Even locked files can be deleted via the browser - actually this is stupid.
I'm honestly thinking about dropping the webdav lock module after all these fundings.
Not consistent, right.
Nevertheless webdav lock is very useful and a important feature.
@jakobsack What you think?
Sure it is stupid that it does not work for the web interface. For me it is OK if it only works for WebDAV in the first step. The usecase would be that 2 people are both working with WebDAV and a file should be locked when a user opens it.
@Gomez I don't know how file sharing is implemented but reading the error report (but not all logs) it seems like the locks are not shared correctly or not shared at all.
@DeepDiver1975 I'm afraid that locks are part of the webdav spec and can not easily be dropped
I'm afraid that locks are part of the webdav spec and can not easily be dropped
@jakobsack within sabredav it's just a plugin to be loaded - or not :wink:
@Gomez can you re-test the locking scenario with two instances of webdrive using this explicit locking mechanism? From my understanding this is the way to go.
Sure it is stupid that it does not work for the web interface.
Honestly speaking: up to now this is no concept scope of owncloud and it has not yet been requested These are topics for discussion for sure - but for sure beyond the scope of OC5 and OC6
i removed the ownCloud 6 milestone here
i removed the ownCloud 6 milestone here
agreed - looks like the implemented solution in #5342 doesn't fix this issue anyhow - @Gomez any news? THX