Does SVN allows blanks in paths for svn auth file

2020-07-22 17:51发布

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?

1条回答
劳资没心,怎么记你
2楼-- · 2020-07-22 18:39

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.

查看更多
登录 后发表回答