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

Re: Problem with write-through mirroring on subversion 1.5.1

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 6 Aug 2008 20:01:39 +0300 (Jerusalem Daylight Time)

I'm guessing here, but this change (which wasn't in 1.5.0) looks
suspiciously relevant.

Index: branches/1.5.x/subversion/libsvn_ra_neon/commit.c
===================================================================
--- branches/1.5.x/subversion/libsvn_ra_neon/commit.c (revision 31798)
+++ branches/1.5.x/subversion/libsvn_ra_neon/commit.c (revision 31799)
@@ -1036,8 +1036,8 @@ static svn_error_t * commit_add_file(const char *p
       svn_ra_neon__resource_t *res;
       svn_error_t *err = svn_ra_neon__get_starting_props(&res,
                                                          file->cc->ras,
- file->rsrc->url, NULL,
- workpool);
+ file->rsrc->wr_url,
+ NULL, workpool);
       if (!err)
         {
           /* If the PROPFIND succeeds the file already exists */

Matthias Hoertzsch wrote on Wed, 6 Aug 2008 at 04:05 -0700:
>
>
>
> Heiko Helmle (horiba/eu) wrote:
> >
> > Hello,
> >
> > I have a weird problem with a subversion test setup - experimenting with
> > svnsync and the write-through-mirror.
> >
> > apache is 2.2.8-1ubuntu0.3 (prefork mpm)
> > subversion is 1.5.1dfsg1-1ubuntu1
> >
> > I have two repositories set up on the same apache - one master, one mirror
> > - apache setup is the following:
> >
> > <Location /mirror>
> > DAV svn
> > SVNPath /home/hel/mirror
> > SVNMasterURI http://localhost/master
> > </Location>
> >
> > <Location /master>
> > DAV svn
> > SVNPath /home/hel/master
> >
> > </Location>
> > CustomLog /var/log/apache2/svn_logfile "%t %u %{SVN-ACTION}e"
> > env=SVN-ACTION
> >
> > Mirror is constructed using svnsync, UUIDs of both repos are identical -
> > all according to the documentation.
> >
> > Then I check out the mirror as a working copy - works fine
> >
> > I change a file, commit - works fine
> >
> > I add a file -> svn add -> commit -> Adding test
> > svn: Commit failed (details follow):
> > svn: Server sent unexpected return value (400 Bad Request) in response to
> > PROPFIND request for
> > '/mirror/!svn/wrk/b3c6a8a6-f811-44a1-88ac-cf390e2e6914/test'
> >
> > This last operation did not log anything to svn_logfile - the access log
> > looks like this:
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "OPTIONS /mirror HTTP/1.1" 200
> > - "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "PROPFIND /mirror HTTP/1.1" 207
> > 643 "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "OPTIONS /mirror HTTP/1.1" 200
> > 186 "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "MKACTIVITY
> > /master//!svn/act/b3c6a8a6-f811-44a1-88ac-cf390e2e6914 HTTP/1.1" 201 317
> > "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "MKACTIVITY
> > /mirror/!svn/act/b3c6a8a6-f811-44a1-88ac-cf390e2e6914 HTTP/1.1" 201 317
> > "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "PROPFIND
> > /mirror/!svn/vcc/default HTTP/1.1" 207 396 "-" "SVN/1.5.1 (r32289)
> > neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "CHECKOUT /master//!svn/bln/297
> > HTTP/1.1" 201 333 "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "CHECKOUT /mirror/!svn/bln/297
> > HTTP/1.1" 201 333 "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "PROPPATCH
> > /master//!svn/wbl/b3c6a8a6-f811-44a1-88ac-cf390e2e6914/297 HTTP/1.1" 207
> > 460 "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "PROPPATCH
> > /mirror/!svn/wbl/b3c6a8a6-f811-44a1-88ac-cf390e2e6914/297 HTTP/1.1" 207
> > 460 "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "PROPFIND /mirror HTTP/1.1" 207
> > 381 "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "CHECKOUT
> > /master//!svn/ver/297/ HTTP/1.1" 201 330 "-" "SVN/1.5.1 (r32289)
> > neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "CHECKOUT /mirror/!svn/ver/297/
> > HTTP/1.1" 201 330 "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:32 +0200] "PROPFIND
> > /mirror/!svn/wrk/b3c6a8a6-f811-44a1-88ac-cf390e2e6914/test HTTP/1.1" 400
> > 316 "-" "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:33 +0200] "DELETE
> > /master//!svn/act/b3c6a8a6-f811-44a1-88ac-cf390e2e6914 HTTP/1.1" 204 - "-"
> > "SVN/1.5.1 (r32289) neon/0.28.2"
> > 127.0.0.1 - - [31/Jul/2008:00:51:33 +0200] "DELETE
> > /mirror/!svn/act/b3c6a8a6-f811-44a1-88ac-cf390e2e6914 HTTP/1.1" 204 - "-"
> > "SVN/1.5.1 (r32289) neon/0.28.2"
> >
> > Notice the very last PROPFIND -- it does not get proxied to the master -
> > the error 400 is returned directly from the mirror.
> >
> > The error_log also complains:
> > [Thu Jul 31 00:51:32 2008] [error] [client 127.0.0.1] Could not fetch
> > resource information. [400, #0]
> > [Thu Jul 31 00:51:32 2008] [error] [client 127.0.0.1] (2)No such file or
> > directory: An unknown activity was specified in the URL. This is generally
> > caused by a problem in the client software. [400, #0]
> >
> > This error messages look like they come from the mirror, not from the
> > master.
> >
> > Did I overlook something? I'm a bit stumped, since changes work, adds do
> > not...
> >
> > With kind regards
> > Heiko Helmle
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> > For additional commands, e-mail: users-help_at_subversion.tigris.org
> >
> >
>
>
> Hello,
>
> I had the same problem,
> Apache master and mirrors are at dav_svn version 1.5.0,
> I just upgraded my local client to svn 1.5.1 and had the same effect:
>
> commiting of changes did work, adding failed with a 400 Bad Request message.
> After downgrading the local client to svn 1.5.0 everything worked fine
> again.
> So it seems to be an issue in the 1.5.1 client.
>
> regards,
>
> Matthias
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-06 19:02:54 CEST

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.