Den ons 17 apr. 2024 kl 15:32 skrev BK <b...@gmx.de>:

> Hello Pavel,
>
> That is the question.
> Is it possible in version 1.14 to keep this format
> (per repository) as it is possible in version 1.8?
> I think this is clearer with a large number
> of repositories on the server.
>
The code as it is now seems to be very intentionally written to NOT allow
multiple sections with the same name, see the check_open_section() function
in authz_parse.c[1].

I don't know if it would be possible to relax this restriction but feel
free to take a look at the code and send a patch to
d...@subversion.apache.org.

It is not possible to switch back to the old authz parse code in version
1.14.

Kind regards,
Daniel



[1]
https://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/authz_parse.c?revision=1875971&view=markup#l310



> Regards,
> Bernhard
>
>
> Am 17.04.24 um 14:16 schrieb Pavel Lyalyakin:
>
> On Wed, 17 Apr 2024 at 15:08, BK <b...@gmx.de> <b...@gmx.de> wrote:
>
> Hello,
>
> After the change from Subversion 1.8 to 1.14 on my server
> the access rights definitions in the svn_access_file
> no longer work.
> The following error message appears:
> [authz_svn:error] Failed to load the mod_authz_svn config: Error while 
> parsing config file: '/opt/csvn/release/data/conf/svn_access_file': svnauthz: 
> E220003: Section appears more than once in the authz file: [groups]
>
> Is it no longer possible to define groups more than once
> per repository in the acccess file? I find this style
> more clearly organised, than to separate all groups
> of the repos and the corresponding access rights
> separate.
>
> Is there a possibility to stay in the old format (Subvesion 1.8)?
>
> Here is an extract from the svn_access_file file.
>
> ######################################################################
> # server administrators
> ######################################################################
> [groups]
> ApplicationServerAdmins = svnadm, admim1
>
> # ---------------------------------------------------
> # access rules for entire server content
> # ---------------------------------------------------
> [/]
> @ApplicationServerAdmins = rw
>
>
> ######################################################################
> # test1
> ######################################################################
> [groups]
> test1_Administration = @ApplicationServerAdmins, user1
> test1_Users = user1
>
> # ---------------------------------------------------
> # access rules
> # ---------------------------------------------------
> [test1:/]
> @test1_Administration = rw
> [test1:/tags/to1/t1]
> @test1_Users = rw
>
>
> ######################################################################
> # jira_test
> ######################################################################
> [groups]
> jira_test_Administration = @ApplicationServerAdmins, admin2
> jira_test_Developer = user2
>
> # ---------------------------------------------------
> # access rules
> # ---------------------------------------------------
> [jira_test:/]
> @jira_test_Administration = rw
> @jira_test_Developer = rw
>
>
> Thanks for your help,
> Bernard
>
> I'm not familiar with this particular issue and the error message. But
> why does your authz file have multiple [groups] sections? I think that
> you should clean up the file and 1) Remove unnecessary entries. 2)
> Group all group definitions in a single [groups] section.
>
>
>

Reply via email to