0

I have following folders in SVN repository marketing:

/marketing/event1/pictures
/marketing/event2/pictures
...
/marketing/eventn/pictures

I have authorization configurations:

[groups]
head = user1, user2
visuals = user3, user4
[/]
* =
[marketing:/]
@head = rw
[marketing:/marketing/event1/pictures]
@visuals = rw
[marketing:/marketing/event2/pictures]
@visuals = rw
...

It is working in case the visuals group to checkout all pictures folders one by one. It is annoying if the sub folders become more.

The ideal solution is to let visuals group checking out /marketing/ once, get all sub folders tree excluding the files that visuals group has no right to read from. But there is authorization mistake while visuals checkout the /marketing/ from SVN.

0

Really "Ideal Solution" (tm) will be

  1. Read about SVN extenals
  2. Build a) additional b) self-maintained tree of "Data for Visuals"

because your solution is possible even now, but expect (will require) something like

[/]
* =
[marketing:/]
@head = rw
@visuals = r
[marketing:/file1]
@visuals =
[marketing:/file2]
@visuals =
[marketing:/file3]
@visuals =
...

for each and every file inside "restricted" tree, whereas the use of externals will produce "one added line in property per added folder"

  • <pre> [marketing:/] @visuals = r </pre> is not working for me since the visuals should not read other files/folders from / except the picture folder. to maintain tree is not convenient either since visuals group still need to checkout every folder one by one. – Hans Chen Oct 10 '17 at 10:09
  • @HansChen - you are wrong both times. Re-read my text carefully and fully and read about Path-Based Authorization in SVN Book more times. Long follow-up in answer will appear later – Lazy Badger Oct 11 '17 at 2:21
  • I have tried svn:externals (assume that is what you mean). it works partially. I still need to add each restricted folder to main repository svn:externals like Events/2017/Euro/Pictures svn+ssh://svn@127.0.0.1/visuals/Events/2017/Euro/Pictures – Hans Chen Oct 12 '17 at 8:19

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.