SVN 是否允许 svn auth 文件规则的路径中存在空格?

发布于 2024-10-23 20:26:20 字数 516 浏览 2 评论 0原文

目前,我们遇到了包含空白且属于 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天气好吗我好吗 2024-10-30 20:26:20

我遇到了这个问题,偶然发现了这个页面,发现还没有给出答案。

[/junk of me]
* = 

非常适合我。

使用 svnauthz-validate 检查 authz 文件会很有帮助,因为我真正的问题是在 authz 文件中的其他位置。

I had this problem and stumbled upon this page and saw there is no answer given yet.

[/junk of me]
* = 

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文