Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3317

Cannot add files to slave when using write-through proxy and svn client >=1.5.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5.x
    • Fix Version/s: ---
    • Component/s: cmdline client
    • Labels:

      Description

      I've found this reported on various lists, but no active bug:
      
      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... 
      
      other reports of similar errors:
      It looks like a regression in svn 1.5.1.
      
      See other threads,
      http://groups.google.com/group/tortoisesvn/browse_frm/thread/b1a50e03fd5dbe72/e0856dbafbe5a4e7
      http://subversion.tigris.org/servlets/BrowseList?list=users&by=thread&from=671265
      

      Original issue reported by jeckhart

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                subversion-importer Subversion Importer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: