haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.33k stars 1.55k forks source link

Webdav #551

Closed Bodhibear closed 10 years ago

Bodhibear commented 10 years ago

Hi,

When I try to use the mount.davfs for mounting the Webdav, it works. But I can not write in the mount directory. I have the same response from seafdav:

agent="davfs2/1.4.6 neon/0.29.6", elap=0.024sec -> 403 Forbidden

Regards, Juan

Bodhibear commented 10 years ago

I have installed the version 2.1.4 x86_64 with nginx HTTPS

killing commented 10 years ago

Any other log messages in log/seafdav.log?

2014-02-19 17:45 GMT+08:00 Bodhibear notifications@github.com:

Hi,

When I try to use the mount.davfs for mounting the Webdav, it works. But I can not write in the mount directory. I have the same response from seafdav:

agent="davfs2/1.4.6 neon/0.29.6", elap=0.024sec -> 403 Forbidden

Regards, Juan

— Reply to this email directly or view it on GitHubhttps://github.com/haiwen/seafile/issues/551 .

Bodhibear commented 10 years ago

Hi!

I just deleted for security reasons:

[2014-02-20 09:26:00,567]: - - "PROPFIND /" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.012sec -> 207 Multistatus [2014-02-20 09:26:12,580]: - - "PUT /.bash_history" length=50, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.015sec -> 403 Forbidden [2014-02-20 09:26:20,739]: - - "PROPFIND /" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.011sec -> 207 Multistatus [2014-02-20 09:26:27,926]: - (anonymous) - "OPTIONS /" connection="TE, Keep-Alive", agent="davfs2/1.4.6 neon/0.29.6", elap=0.001sec -> 401 Not Authorized [2014-02-20 09:26:27,934]: - - "OPTIONS /" connection="TE, Keep-Alive", agent="davfs2/1.4.6 neon/0.29.6", elap=0.006sec -> 200 OK [2014-02-20 09:26:27,950]: - - "PROPFIND /" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.015sec -> 207 Multistatus [2014-02-20 09:26:27,954]: - - "PROPFIND /" length=159, depth=0, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.002sec -> 207 Multistatus [2014-02-20 09:26:27,957]: Raising DAVError 405 Method Not Allowed [2014-02-20 09:26:27,957]: - - "USERINFO /" connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.002sec -> 405 Method Not Allowed [2014-02-20 09:26:29,988]: - - "PROPFIND /" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.011sec -> 207 Multistatus [2014-02-20 09:26:30,007]: - - "PROPFIND /My Library/" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.017sec -> 207 Multistatus [2014-02-20 09:26:33,363]: - - "PROPFIND /My Library/" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.017sec -> 207 Multistatus [2014-02-20 09:26:44,049]: - - "PUT /My Library/hola.txt" length=0, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.025sec -> 403 Forbidden

I mounted with rw option from Ubuntu.

Thanks! Juan

Bodhibear commented 10 years ago

I just deleted the USER for security reasons.

killing commented 10 years ago

I can't reproduce your problem. The operation "PUT /.bash_history" is obviously not allowed. The root directory is read only. But I don't know why "PUT /My Library/hola.txt" fails. Can you check the permission to this library?

2014-02-20 10:54 GMT+08:00 Bodhibear notifications@github.com:

Hi!

I just deleted for security reasons:

[2014-02-20 09:26:00,567]: - - "PROPFIND /" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.012sec -> 207 Multistatus [2014-02-20 09:26:12,580]: - - "PUT /.bash_history" length=50, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.015sec -> 403 Forbidden [2014-02-20 09:26:20,739]: - - "PROPFIND /" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.011sec -> 207 Multistatus [2014-02-20 09:26:27,926]: - (anonymous) - "OPTIONS /" connection="TE, Keep-Alive", agent="davfs2/1.4.6 neon/0.29.6", elap=0.001sec -> 401 Not Authorized [2014-02-20 09:26:27,934]: - - "OPTIONS /" connection="TE, Keep-Alive", agent="davfs2/1.4.6 neon/0.29.6", elap=0.006sec -> 200 OK [2014-02-20 09:26:27,950]: - - "PROPFIND /" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.015sec -> 207 Multistatus [2014-02-20 09:26:27,954]: - - "PROPFIND /" length=159, depth=0, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.002sec -> 207 Multistatus [2014-02-20 09:26:27,957]: Raising DAVError 405 Method Not Allowed [2014-02-20 09:26:27,957]: - - "USERINFO /" connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.002sec -> 405 Method Not Allowed [2014-02-20 09:26:29,988]: - - "PROPFIND /" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.011sec -> 207 Multistatus [2014-02-20 09:26:30,007]: - - "PROPFIND /My Library/" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.017sec -> 207 Multistatus [2014-02-20 09:26:33,363]: - - "PROPFIND /My Library/" length=286, depth=1, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.017sec -> 207 Multistatus [2014-02-20 09:26:44,049]: - - "PUT /My Library/hola.txt" length=0, connection="TE", agent="davfs2/1.4.6 neon/0.29.6", elap=0.025sec -> 403 Forbidden

I mounted with rw option from Ubuntu.

Thanks! Juan

— Reply to this email directly or view it on GitHubhttps://github.com/haiwen/seafile/issues/551#issuecomment-35581770 .

Bodhibear commented 10 years ago

I mount the webdav with the same user has the right to access this library. I mean I am using the default library of the user authenticated.

Bodhibear commented 10 years ago

My users backend is implemented with LDAP

killing commented 10 years ago

Do you upload file to the library without problem? I mean from seahub web interface.

2014-02-20 15:41 GMT+08:00 Bodhibear notifications@github.com:

I mount the webdav with the same user has the right to access this library. I mean I am using the default library of the user authenticated.

— Reply to this email directly or view it on GitHubhttps://github.com/haiwen/seafile/issues/551#issuecomment-35595963 .

Bodhibear commented 10 years ago

I can upload files using web interface :(

killing commented 10 years ago

You have to isolate where the problem is.

2014-02-20 16:17 GMT+08:00 Bodhibear notifications@github.com:

I can upload files using web interface :(

— Reply to this email directly or view it on GitHubhttps://github.com/haiwen/seafile/issues/551#issuecomment-35597815 .

Bodhibear commented 10 years ago
Bodhibear commented 10 years ago

any idea?

Bodhibear commented 10 years ago

I am using Ubuntu 12.04.4 ..

Bodhibear commented 10 years ago

i just upgraded to 2.1.5... no way :(

killing commented 10 years ago

Can you find any error message in logs/seafile.log?

killing commented 10 years ago

Also have a look at logs/ccnet.log

Bodhibear commented 10 years ago

I found the problem!!!!! fuck! My LDAP server stores the mail Juan.C@... but when I registered my first time the account in the seafile, it is stored with juan.c@... When I authenticate in the seafile, i don't have any problem, but seafdav considers I am not the user. So when I use webdav, I have to logon on without capital letters.

killing commented 10 years ago

Thanks, we'll fix the problem in seafdav. Are you using SQLite as database?

2014-02-21 11:54 GMT+08:00 Bodhibear notifications@github.com:

I found the problem!!!!! fuck! My LDAP server stores the mail Juan.C@... but when I registered my first time the account in the seafile, it is stored with juan.c@... When I authenticate in the seafile, i don't have any problem, but seafdav considers I am not the user. So when I use webdav, I have to logon on without capital letters.

— Reply to this email directly or view it on GitHubhttps://github.com/haiwen/seafile/issues/551#issuecomment-35697023 .

Bodhibear commented 10 years ago

Mysql