linux - 如何通过 WebDAV/DeltaV 访问 subversion 版本库?

标签 linux svn redmine webdav

我安装并设置了 BitNami Redmine Stack 并创建了存储库:

svnadmin create /var/svn/repository0/

我使用基本身份验证。

httpd.conf 的一部分:

<Location>
   DAV svn
   SVNParentPath /var/svn
   AuthName "Subversion Repository"
   AuthType Basic
   AuthUserFile /etc/svn-auth.passwd
   Require valid-user
   Satisfy Any
   AuthzSVNAccessFile /var/svn/authz
</Location>

svn-auth.passwd 的一部分:

htpasswd -c -m /etc/svn-auth.htpasswd someuser
someuser:$apr1$bTN...

授权:

[/]
* = r

[repository0:/]
someuser = rw

当我浏览这个 url:http://remote-linux-host:81/svn/repository0/ 我得到以下信息:

enter image description here

我输入我的凭据并查看:

Forbidden

You don't have permission to access /svn/repository0/ on this server.

对于这个 url http://remote-linux-host:81/svn/ 我得到:

<D:error><C:error/><m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable></D:error>

error.log 中的内容:

...
[Wed Dec 12 15:16:17 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:17 2012] [error] [client ..ip...] Access denied: 'someuser' GET svn:/repository0
[Wed Dec 12 15:16:20 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:20 2012] [error] [client ..ip...] Access denied: 'someuser' GET svn:/repository0
[Wed Dec 12 15:16:38 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:38 2012] [error] [client ..ip...] Access denied: 'someuser' GET svn:/repository0
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] (20014)Internal error: Can't open file '/var/svn/format': No such file or directory
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not fetch resource information.  [500, #0]
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not open the requested SVN filesystem  [500, #2]
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not open the requested SVN filesystem  [500, #2]

我在 authz 文件中做了一些小改动:

[groups]
developers = someuser

[repository0:/]
@developers = rw

现在,当我再次访问此 url http://remote-linux-host:81/svn/repository0/ 时,我得到以下信息:

<D:error><C:error/><m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable></D:error>

我做错了什么?

最佳答案

我为运行 Apache 的用户授予读/写访问权限,现在一切正常。

enter image description here

关于linux - 如何通过 WebDAV/DeltaV 访问 subversion 版本库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13838358/

相关文章:

svn - TortoiseSVN 正在显示问号装饰器

svn - 颠覆错误 "Could not read status line"是什么意思?

git - 如何从不相关的存储库中 merge 历史

apache - Hostmonster apache fcgi 上的 Redmine 2 : Rails application failed to start properly

ruby-on-rails - 尝试从 Rails 应用程序在 redmine 上创建问题

linux - ARM、GNU 汇编程序 : how to pass "array" arguments to execve()?

python - 使用 python c api 获取共享对象的完整路径

json - Redmine 安装中的 secret 生成失败并出现 json 错误

c - 过滤 rsyslogd 消息

linux - 如何使用 shell 脚本拦截 perl 脚本的执行然后实际执行它们?