Does SVN allows blanks in paths for svn auth file rules?

醉酒当歌 提交于 2019-12-06 07:31:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!