You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Erik Hemdal <er...@comprehensivepower.com> on 2006/06/13 21:34:19 UTC

All commits locked out with commit-access-control.pl using read-write CFG

Installation details:
Subversion v1.3.0
Red Hat Linux 8
Using svnserve and it's authorization files.

I'm trying to setup the default pre-commit hook to check for comments and to
prevent checkins against tags.

No matter what I do, I cannot get commit-access-control.pl to allow access.
Commits anywhere in my repository fail and  tell me that my user does not
have permission to commit.

All the files are in the repository's conf file /var/svn/sample/conf.  The
top of the repository is /var/svn/sample.

Here's what's in /var/svn/sample/conf/commit-access-control.cfg

	[sample]
	match = .*
	access = read-write

Everything else in that file is commented out.

The pre-commit hook script contains the following call to
commit-access-control.pl (I edited in the full paths to files):

	/var/svn/sample/conf/commit-access-control.pl "$REPOS" "$TXN"
/var/svn/sample/conf/commit-access-control.cfg || exit 1

$REPOS and $TXN are passed in as command line arguments to pre-commit.  The
.pl script is world-executable and the .cfg is world-readable.

I know that the pre-commit script works if I disable the invocation of
commit-access-control.pl, because I have seen it properly validate for
checkin comments.  And checkins work correctly so long as I do not try to
run the Perl script.  But if I use commit-access-control.pl, I cannot
checkin anywhere in the repository.

I found nothing of value in the mail list archives, the Subversion Book, and
Google.  All references suggest that this should "just work".  I must be
missing something, but I can't see it.


---
Erik Hemdal
Software Engineer
Comprehensive Power, Inc.
420 Northborough Road
Marlborough MA 01752
phone: (508) 460-0010
  fax: (508) 460-0028  
email: erik@comprehensivepower.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org