【问题标题】:How to access the subversion repository through WebDAV/DeltaV?如何通过 WebDAV/DeltaV 访问 subversion 存储库?
【发布时间】:2012-12-12 11:06:26
【问题描述】:

我安装并设置了 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

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

我输入我的凭据并查看:

Forbidden

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

对于这个网址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

现在,当我再次浏览此网址时 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>

我做错了什么?

【问题讨论】:

    标签: linux svn redmine webdav


    【解决方案1】:

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

    【讨论】:

    • 顺便说一句,使用Satisfy Any,您在读取时没有获得授权请求。检查一下
    猜你喜欢
    • 1970-01-01
    • 2017-03-11
    • 2019-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-30
    • 1970-01-01
    相关资源
    最近更新 更多