I'm using the pre-unlock.tmpl in my repository.
When I try to release the lock with a different user (not the lock owner user), the server do not return the exit 1, instead returns 403 Forbidden (on Tortoise release lock command) or 500 internal Server Error (on Tortoise repos browser break-lock command).
The script works fine with the lock owner.
Example runing pre-unlock:
- The script:
http://pastebin.com/vz8shswe
Apache Error log:
No apache error log.
So I have 3 apaches errors: 400, 403 and 500.
I'm using the pre-unlock script template who cames with the subversion.
Why its returning apache error instead the exit 1? I did something wrong?
[root@br ~]# cp /var/www/svn/projeto1/hooks/pre-unlock.tmpl /var/www/svn/projeto1/hooks/pre-unlock
[root@br ~]# chmod 777 /var/www/svn/projeto1/hooks/pre-unlock
- Lock
[root@br ~]# svnadmin lslocks /var/www/svn/projeto1/
Path: /branches/branch2_T1/GRANT.sql
UUID Token: opaquelocktoken:aa8cd874-b719-4500-a6bd-9aec19ddabaf
Owner: fpadilha
Created: 2010-11-19 16:40:14 -0200 (Fri, 19 Nov 2010)
Expires:
Comment (1 line):
- Releasing lock with vitorcac user (Tortoise):

(2)No such file or directory: User "vitorcac" submitted a locktoken created by user "fpadilha". [403, #0]
- Releasing lock in the working copy at linux:
[root@br ~]# svn unlock --username vitorcac /home/vitorcac/svn/projeto1/branches/branch2_T1/GRANT.sql
svn: Server sent unexpected return value (400 Bad Request) in response to UNLOCK request for '/svn/projeto1/branches/branch2_T1/GRANT.sql'
Apache error log:
(2)No such file or directory: The locktoken specified in the "Lock-Token:" header did not specify one of this resource's locktoken(s). [400, #0]
- Breaking Lock with vitorcac user on repo bronwser:

Last updated