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

Problem with deleting locked file using http: scheme

From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: Mon, 24 Nov 2008 15:44:18 +0000

Hi everybody.

We have a repository that contains a lot of Word and Excel documents. I have therefore implemented a locking process and instructed my user to lock, modify and then commit.

As recommended I have also written a pre-commit hook that checks whether the files being committed are Word or Excel document and in that case whether they are locked (by the same user) or not.

One of my users came back to me the other day saying she was trying to delete a Word document but the pre-commit hook rejected the commit because the file was not locked. The file had been locked however.

After some research I found out before the pre-commit hook was executed the lock has disappeared. I was trying to replicate the error but behold, it worked!! Finally, today I find out that it worked because I was using the file: protocol. So, I modified the script I used to use the http: protocol (and I have modified the Apache configuration too) and I have successfully reproduced the error.

I know this is not strictly a Subversion issue, but could anybody help me. I'm not an expert in Apache and I don't really now how to read the log file.

I am using Subversion 1.4.4 and Apache 2.0 on a RHEL4 server.

I have attached the script I used (svn-lock-test.lsk) and the pre-commit hook (lock-test-pre-commit). You will need to comment/uncomment the checkout line to use either the file: or http: protocol. The pre-commit hook is actually an extract of the real pre-commit hook, but I have deleted all the bits related to other projects we have in the same repository

Thanks
Giulio

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org

Received on 2008-11-24 16:44:47 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.