Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > bug: mirror WebDAV munging checkins containing "/SVN"

subversion
Discussion topic

Back to topic list

bug: mirror WebDAV munging checkins containing "/SVN"

Author Shane Beasley <shane dot beasley at aleri dot com>
Full name Shane Beasley <shane dot beasley at aleri dot com>
Date 2009-06-19 16:07:41 PDT
Message We're using the CollabNet 1.6.1 suite Apache/WebDAV on two servers in a
master/mirror setup. Recently, one of us tried to commit to the mirror a
file that contained the string "/SVN". The master replied with an "svn:
Checksum mismatch, file..." error -- apparently the file was mangled en
route.

Using Wireshark, we found that the mirror was rewriting the string
"/SVN" to the string "/svn" inside the file being committed (!!!),
thereby perturbing the checksum.

Initial research points to dav_svn__location_body_filter:

    
http://svn.collab.ne​t/viewvc/svn/trunk/s​ubversion/mod_dav_sv​n/mirror.c?revision=​36159

It seems to be doing a case-insensitive search-and-replace from
"remotepath" -- the path component of the master server URI ("/svn" in
our case) -- to "localpath" -- apparently the root of the repository as
the mirror knows it (also "/svn" in our case). I suspect that it's doing
this search-and-replace against the file we're committing, in which case
presumably it shouldn't be doing that -- although I'm not sure what it's
supposed to be doing instead.

I suspect that our particular case can be fixed by removing the
case-sensitivity check, but that's obviously a hack. :) Any better ideas?

Thanks!

Shane

« Previous message in topic | 1 of 2 | Next message in topic »

Messages

Show all messages in topic

bug: mirror WebDAV munging checkins containing "/SVN" Shane Beasley <shane dot beasley at aleri dot com> Shane Beasley <shane dot beasley at aleri dot com> 2009-06-19 16:07:41 PDT
     Re: bug: mirror WebDAV munging checkins containing "/SVN" glasser David Glasser 2009-06-25 14:01:43 PDT
Messages per page: