问题
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:
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.
来源:https://stackoverflow.com/questions/5374834/does-svn-allows-blanks-in-paths-for-svn-auth-file-rules