SVN 是否允许 svn auth 文件规则的路径中存在空格?
目前,我们遇到了包含空白且属于 svn auth 文件中的规则一部分的目录的问题。因此,我们希望拥有基于路径的授权,并拥有一个包含以下内容的文件:
[/]
* = rw
[/junk of me]
* =
me = rw
当我清除身份验证数据并以 me
签出存储库的根目录时,我会看到根目录和子目录目录我的垃圾
。当我在junk of me
中添加一个文件,并尝试以另一个用户身份提交时,我可以这样做。看起来junk of me
的规则根本不起作用。
我尝试了以下变体,但没有任何区别:
[/junk of me]
[/junk\ of\ me]
[/junk%20of %20me]
有没有办法让目录中包含空白,并在 svn auth 文件中定义规则?
We currently have problems with directories that contain blanks and are part of rules in the svn auth file. So we want to have path based authorization, and have a file that contains the following:
[/]
* = rw
[/junk of me]
* =
me = rw
When I clear the authentication data and checkout the root of my repository as me
, I see the root directory and the sub-directory junk of me
. When I add a file inside of junk of me
, and try it to commit as another user, I am allowed to do that. It looks like the rule for junk of me
does not work at all.
I have tried the following variations, but had no difference at all:
[/junk of me]
[/junk\ of\ me]
[/junk%20of%20me]
Is there a way to have directories with blanks in it, and define rules in the svn auth file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了这个问题,偶然发现了这个页面,发现还没有给出答案。
非常适合我。
使用 svnauthz-validate 检查 authz 文件会很有帮助,因为我真正的问题是在 authz 文件中的其他位置。
I had this problem and stumbled upon this page and saw there is no answer given yet.
works perfectly for me.
It would be helpful to check the authz file using svnauthz-validate as my real problem was else where in authz file.