Does SVN allow spaces in paths for svn auth file rules?

Currently, we have problems with directories that contain spaces and are part of the rules in the svn auth file. Therefore, we want to have path-based authorization and have a file that contains the following:

[/] * = rw [/junk of me] * = me = rw 

When I clear my authentication data and check the root of my repository as me , I see the root directory and the junk of me subdirectory. When I add a file inside junk of me and try to commit it as another user, I can do it. It seems that the rule for junk of me does not work at all.

I tried the following options but didn't make any difference:

  • [/junk of me]
  • [/junk\ of\ me]
  • [/junk%20of%20me]

Is there a way to have directories with spaces in it and define rules in the auth svn file?

+3
source share
1 answer

I had this problem and stumbled upon this page and saw that there was no answer yet.

 [/junk of me] * = 

works great for me.

It would be useful to check the authz file with svnauthz-validate, since my real problem was different where in the authz file.

0
source

Source: https://habr.com/ru/post/902695/


All Articles