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

Re: Timeout issues when commiting

From: Dominic Anello <danello_at_danky.com>
Date: 2005-03-30 01:51:16 CEST

On 2005-03-29 16:17:59 -0700, Conner, Shawn wrote:
> Hello,
> Several times when users are commiting changes, they are recieving one
> of the following error message
>
> svn: Commit failed (details follow):
> svn: MERGE request failed on
> '/svn/repos/abacus/Aba_apps/branches/xnetAFC_031805_18:00.branch/scripts
> '
> svn: MERGE of
> '/svn/repos/abacus/Aba_apps/branches/xnetAFC_031805_18:00.branch/scripts
> ': timed out waiting for server (http://thabscc01
> <BLOCKED::http://thabscc01> )
>
> svn: Commit failed (details follow):
>
> svn: MKCOL of
> '/svn/repos/abacus/Aba_apps/!svn/wrk/f9812586-7af3-0310-8c14-907e7fc56fd
> e/branches/uk_b2b_031805_19:02.branch/cmds/BAM': 405 Method Not Allowed
> (http://thabscc01 <http://thabscc01/> )
 
This tends to happen when using mod_authz_svn for path auth and the user
doesn't have write access to the highest common directory in a commit.

Example:
Say a user has read-only access to /foo and write access to /foo/bar and
/foo/baz

If a user tries to file a commit that modifies /foo/bar/a.txt and
/foo/baz/b.txt, svn ends up doing a MERGE on /foo. Since MERGE is a
write operation, authz will reject the operation and the commit will
fail.

The solution I employed was to exclude MERGE requests from validation.
Note that this opens your server to maliciously crafted MERGE requests.
Since our server runs on an intranet only, I'm not too worried about it,
but there is probably a better work around.

Anyway, try putting a <LimitExcept MERGE> around Require valid-user in
your httpd.conf and see if that helps.

Here's what I use:
<Location /ec-svn>
  DAV svn
  SVNPath "/usr/local/svn/ec-svn/repo"
  AuthzSVNAccessFile "/usr/local/svn/ec-svn/auth/access.ini"

  ## AuthLDAP stuff omitted

  <LimitExcept MERGE>
    Require valid-user
  </LimitExcept>
</Location>
 

-- 
If you've got a vision, then I don't want to see
If you've got a notion -- don't waste it on me

  • application/pgp-signature attachment: stored
Received on Wed Mar 30 01:53:47 2005

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.