原文地址:http://geekgok.blogspot.com/2009/01/svn-item-is-not-readable.html
My svn server had a simple authentication and authorization like below.
我的 SVN 服务器用户验证配置如下:
svnserve.conf
[general]
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
realm = My First Repository
authz
[groups]
admin = shylu
[/]
@admin = rw
With this configuration svn log command always failed with a "svn: Item is not readable" error.
使用这个配置, svn log 命令总是失败, 报告 "svn: Item is not readable" 错误。
Problem is, even though anon-access has read permission in svnserve.conf, authz file must explicitly specify read permission to everyone like below.
这个问题的根源是, 即使你在 svnserve.conf 中配置了允许匿名读取, authz 文件里也必须类似下面一条明确的规则, 来设定读取权限。
new authz
[groups]
admin = shylu
[/]
* = r
@admin = rw
开飞机的舒克认为这应该是一个 bug。在 checkin checkout 都能正常工作的时候, 因为看个日志而必须加这么一条规则是荒唐的。
No comments:
Post a Comment