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

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

From: Erik Hemdal <erik_at_comprehensivepower.com>
Date: 2006-06-13 23:34:19 CEST

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
Received on Tue Jun 13 23:35:48 2006

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.