SVN + Apache的每个目录的访问控制:奇怪的权限问题(403 Forbidden错误) [英] svn+apache per directory access control: weird permissions issue (403 Forbidden error)

查看:352
本文介绍了SVN + Apache的每个目录的访问控制:奇怪的权限问题(403 Forbidden错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个完美的工作SVN + Apache的安装,我是用每目录访问控制来限制访问库的各个部分。特别是,没有一个人能够获得顶级存储库中的[/]。人们接触到像[/ WWW]等。我是在一个文件中指定这些权限(SVN访问文件)。

I had a perfectly working svn+apache install where I was using per directory access control to restrict access to various parts of the repository. In particular, no one had access to the top level in the repository [/]. People had access to folders like [/www] etc. I was specifying these permissions in a file (svn-access-file).

我不得不搬到新机。所以我安装颠覆-1.6.3和的httpd-2.2.11就可以了,修改conf文件来模仿旧机器上的conf文件(我复制了SVN-访问文件和SVN-AUTH-文件)。然后,我把一个SVN转储,做了负载把东西背在新的存储库。现在,我可以检查东西了,修改的东西,并提交。然而,当我尝试做一个上使用svn了已签出一​​些子文件夹[/ WWW /人]的副本,我得到以下错误:

I had to move to a new machine. So I installed subversion-1.6.3 and httpd-2.2.11 on it, and modified the conf file to mimic the conf file on the old machine (and I copied the svn-access-file and the svn-auth-file). Then I took an svn dump and did a load to put stuff back in the new repository. Now I can check stuff out, modify stuff, and commit. However, as soon as I try to do an 'svn up' on an already checked out copy of some sub-folder [/www/people], I get the following error:

svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request for 'https://[servername]/svn'

看来问题是,它试图访问顶级目录[/]尽管实际上它应该只试图访问[/ WWW。如果我暂时放弃到用户接入[/],它的工作原理。

It seems the problem is that it is trying to access the top level directory [/] even though really it should only be trying to access [/www]. If I temporarily give the user access to [/], it works.

有人能告诉我怎么解决这一问题?一切工作的旧机器上。

Can someone please tell me how to fix this? Everything worked on the old machine.

谢谢!
拉夫

推荐答案

原来这是在颠覆客户端一个长期的错误。这里的错误报告:

Turns out this is a long standing bug in the subversion client. Here's the bug report:

http://subversion.tigris.org/issues/show_bug.cgi? ID = 3242

这可能会得到固定的下一个主要版本 - 1.7
在此期间,这里是一个黑客的解决方法:

It will probably get fixed in the next major release - 1.7 In the meantime, here's a hack workaround:

http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2357123

我复制'如果'语句转换成源$ C ​​$ C为mod_authz_svn.c和重建SVN和现在的工作:)

I copied the 'if' statement into the source code for mod_authz_svn.c and rebuilt svn and it works now :)

这篇关于SVN + Apache的每个目录的访问控制:奇怪的权限问题(403 Forbidden错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆