Page 1 of 1

webdav permission

PostPosted:Mon Jul 04, 2011 8:56 am
by hkbyte
I have set a folder as a read only permission in OpenKM. It is perfect when running in a browser mode. Upload and delete are disabled.

But when the same user login as a webdav mode. The files in this folder can be deleted or edit. Do I miss anything in set up webdav?


hkbyte

Re: webdav permission

PostPosted:Tue Jul 05, 2011 4:40 pm
by jllort
Seems a bug. Which openkm version ?
Could you put a screenshot with user roles and other with security on that folder ?

Re: webdav permission

PostPosted:Wed Jul 06, 2011 7:44 am
by hkbyte
openkm 5.1.5

Scenario:
1. set "folder1" as read only for group "readonly".
2. testuser1 is a member of "readonly" group/role.
3. In browser mode, the permissions for testuser1 are correct in this folder.

But after webdav mounting under "testuser1". In "folder1".
1. Delete is not ok.
2. Put a new file is ok.
3. Edit a file (eg word/excel file) is ok and there is no prompt for read only. But when "saved" the file, there is error saying that unable to save. instead, it will save into another temp file (as my screen capture attached)

I have tested both in webdrive and netdrive client.

Re: webdav permission

PostPosted:Fri Jul 08, 2011 6:53 pm
by jllort
In administration tab / configuration ( second icon ) which value have in property restrict.file.extension

Re: webdav permission

PostPosted:Sat Jul 09, 2011 8:25 am
by hkbyte
*~,*.bak

Re: webdav permission

PostPosted:Sat Jul 09, 2011 3:32 pm
by jllort
Seems what's stored is a temporary file and property restrict.file.extension seems right. Could you try enabling restrict.file.mime.

I think could be a bug, try enable restrict.file.mime. and if not runs propertly I'll open and issue in our tracking system.

Re: webdav permission

PostPosted:Mon Jul 11, 2011 7:55 am
by hkbyte
enabling restrict.file.mime have the same result.

But I did some tests during the weekend and found that:

1. I have tested MS windows platform webdav clients: netdrive and webdrive AND Mac platform Cyberduck. They have the same issues.

But
2. If I use Windows networking (Windows XP), the permissions are correct. (no issues)

Are those webdav clients have bug or openkm ?

Re: webdav permission

PostPosted:Tue Jul 12, 2011 2:27 pm
by jllort
Could you test with webdrive, seems is one of the most complete webdav implementations. I'm not sure about which could be the origin of the problem, about microsoft, we're sure there's some problems on default client implementation that comes with MS. Really some clients and some webdav services sometimes not implementing all webdav specification, that's one of the major problems. I'll put the issue in our tracking system in order investigate it.

Could you post the client versions you've tested to try ourself with same software versions. I've added here http://issues.openkm.com/view.php?id=1705

Re: webdav permission

PostPosted:Wed Jul 13, 2011 7:42 am
by hkbyte
I already tested with webdrive.

Client that I have tested:
1. webdrive (windows) v10.0
2. netdrive (windows) v1.3.0.2
3. cyberduck (Mac) v 4.0.2