貌似 Nginx 的 WebDAV 是无法支持文件夹改名的?

2014-09-04 09:05:01 +08:00
 Livid
用 Transmit 试着去给文件夹改名的时候,遇到 409 Conflict 错误。

error_log 里有这样的一句话:

should be either collections or non-collections
4266 次点击
所在节点    NGINX
5 条回复
denghongcai
2014-09-04 10:05:02 +08:00
if ((r->uri.data[r->uri.len - 1] == '/' && *(last - 1) != '/')
|| (r->uri.data[r->uri.len - 1] != '/' && *(last - 1) == '/'))
{
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"both URI"%V"and"Destination"URI"%V" "
"should be either collections or non-collections",
&r->uri, &dest->value);
return NGX_HTTP_CONFLICT;
}

从http_dav module的代码来说,是你的姿势不对吧……
Livid
2014-09-04 10:09:05 +08:00
@denghongcai 你用 Transmit 试一下吧,OS X 下非常流行的文件传输客户端。
ohsc
2014-09-04 10:15:02 +08:00
ohsc
2014-09-04 10:15:26 +08:00
@Livid https://github.com/arut/nginx-dav-ext-module

还是用 Apache 搭建 WebDAV 比较好,Nginx 支持不完全。
denghongcai
2014-09-04 10:29:21 +08:00
@Livid 我不是Mac,直接发包用MOVE指令操作是没问题的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/131624

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX