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

RE: Post hook weirdness?

From: Rory Clark <rory_at_clarkzoo.org>
Date: 2006-02-14 00:03:01 CET

So here's what I did and this is how things went:
 
If I add the low privilege account to "Power Users" on the Repository
Machine and then do a commit on the Remote Client, the commit takes place
but the hook does not get executed.
 
If I add the low privilege account to "Administrators" on the Repository
Machine and then do a commit on the Remote Client, the commit happens and
the hook is executed.
 
If I keep the low privilege account in just the "Users" group on the
Repository Machine, log into the Repository Machine as the low privilege
account and do a commit on the Repository Machine, the commit happens and
the hook is executed.
 
While there is a permissions component to this problem and running SVNServe
under an admin account fixes the problem, I'd really not run SVNServe as an
administrator.
 
Any more thoughts?
 
Rory

-----Original Message-----
From: Durden, Paul [mailto:Paul.Durden@avocent.com]
Sent: Monday, February 13, 2006 7:34 AM
To: rory@clarkzoo.org
Subject: RE: Post hook weirdness?

Rory,
Have you tried logging into The Repository Machine as the lower privilege
user account and trying this ?
It might direct you to your problem.
Maybe permissions related for the directories for the VBS script and or log
files.
 
Paul

  _____

From: Rory Clark [mailto:rory@clarkzoo.org]
Sent: Sunday, February 12, 2006 11:04 PM
To: 'SVN Users email list'
Subject: Post hook weirdness?

Summary of the problem:
I've written a script that sends e-mail during the post-commit hook and it
works, when I'm doing commits from the machine where the repository resides,
but it doesn't work from a remote machine. So this is likely a config issue
by my guesstimates.
 
More detail:

* The Repository Machine -

* OS: Windows Server 2003

* Subversion: v1.2.3

* Access: SVNServe

* Running under a lower privilege user account

* The Remote Client -

* OS: Windows Server 2003

* Subversion: v1.2.3 / TortoiseSVN: v1.3.1 (the command Subversion
client is not used directly)

* The Hook

* In the hooks directory of the repository, I have post-commit.cmd
with the following commands and makes the assumption that there is no
environment settings:
set REPOS="%1"
set REV="%2"

c:\WINNT\system32\cscript.exe
F:\SVNWorking\Development\Tools\email-commit.vbs %REPOS% %REV%
>f:\svnroot\norwescon\errFile.log

* The Problem In Action

* Prior to any commits, I delete the errFile.log from The Repository
Machine.

* On The Repository Machine...

* I modify a file and I commit it.

* errFile.log is created.

* E-mail is sent and delivered to the appropriate recipients

* Result: It works!

* On The Remote Client...

* I modify a file and I commit it.

* The errFile.log is not created on The Repository Machine.

* No e-mail is received and I can't find the e-mail in the mail server
logs.

* Result: It doesn't work.

Does anyone have any ideas as I'm at a loss at this point.
 
Thanks!
Rory
Received on Tue Feb 14 00:05:08 2006

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