Viewvc for path based svn access

I use viewvc (V1.1.22) along with svn (V1.8), and svn uses path-based svnserve access. Viewvc works great when the user has read access at the repository level. When the user does not have read access at the repository level, he throws an error, as shown below, although I refer to the full URL, including the allowed path:

URL: https://mysvn.com/viewvc/test-repo/branches/branch-A/dist

The root "test-repo" is unknown. If you think this is correct, re-check the configuration.

HTTP response status

404 Not Found

My auth file is as follows:

[groups]

test_group = user1, user2

[/] * =

[: Glob: test repository / branches / * / distance]

@test_group = r

If I add another rule that gives read access to the repository level, viewvc works fine.

[Test repository /]

@test_group = r

Is there a way to show viewvc to allow viewing of allowed folders, although access to the repository is limited? Any help appreciated.

+6
source share
2 answers

Look at this link, maybe it will help you.

SVN Access Manager Documentation

This will certainly help others.

0
source

The main problem between the two interfaces is that ViewVC requires you to allow access from the top of the repository to the end. WebSVN allows you to simply grant permissions in a subfolder and gives limited implied permissions down to the top. To get around this, you need to make two changes to the auth file.

  • Grant anonymous (star) read permissions in the root so that everyone can get to the folders further down the tree to which they need access.
  • Now you need to remove permissions for all subfolders that you do not want them in.

For a detailed example, including the exact changes you must make to your auth file, see this link: ViewVC and SVN Permissions

0
source

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


All Articles