[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Error with AuthzSVNAccessFile parsing in mod_dav_svn

From: Samuel Moffatt <sam.moffatt_at_joomla.org>
Date: Mon, 16 Nov 2009 21:17:18 +1000

The file has been automatically generated by GForge AS and it has been
for a while. It has only become a problem since I shifted from 1.2 to
1.4 or 1.6 - I really don't want to go back either. I'm currently
running an in place sed script to change "groups" to "BUGgroups"
(obviously with some extra checks so I don't accidentally clobber
something else) and that appears to be resolving the issue temporarily
though during the regen and sed replacement there are sure to be some
unfortunates who hit it and get a forbidden in a minute or so. The
file should be unix all the way, and I'm editing it in vim or sed. I
would be greatly disappointed if Subversion can get itself so badly
confused by a slight line ending mismatch.

By the way, have you tried to replicate the issue?

Cheers,

Sam

On Mon, Nov 16, 2009 at 8:13 PM, Johan Corveleyn
<johan.corveleyn_at_uz.kuleuven.ac.be> wrote:
>> Van: Samuel Moffatt [mailto:sam.moffatt_at_joomla.org]
>>
>> Hi all,
>>
>> I think I've found a bug in the way that AuthzSVNAccessFile is parsed.
>> I recently upgraded an old Subversion 1.2.1 site with some projects to
>> first 1.4.2 and then 1.6.6 and discovered that the file balked at
>> loading and spat out the following error:
>> Failed to load the AuthzSVNAccessFile: An authz rule refers to group
>> '@groups-committers', which is undefined
>>
>> I went hunting figuring a script somewhere had died but couldn't work
>> out what was going wrong because as far as I could see the group did
>> exist. I then looked to the section that was causing the issue:
>> [groups:/]
>> @groups-committers = rw
>> @groups-readers = r
>> * = r
>>
>>
>> I removed the committers line and tested again, it then complained
>> about groups-readers, so I removed that line. That then yielded an
>> even strange error message:
>> Failed to load the AuthzSVNAccessFile: An authz rule refers to group
>> '*', which is undefined
>>
>> At this point I deleted the last two lines of the section and
>> everything came good. Then I put the section back and it broke it. I
>> renamed it from 'groups' to 'tgroups' and it started working again. I
>> then changed it to 'groupstest' and it still triggered an error.
>>
>> Subversion 1.2 (CentOS 4) was working happily with this, both 1.4.2
>> (CentOS 4 packages) and 1.6.6 (RPMForge) exhibited the incorrect
>> behaviour.
>
> I don't have a lot of experience with groups in the authz file, but just a thought: maybe there are some problems with line-endings in your authz file? Inconsistent line termination, or maybe sometimes you save it in unix format, sometimes in dos/windows format, depending on which editor you use to edit it?
>
> Johan
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2418443

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-16 12:18:09 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.