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

LOCK refresh with If: header fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • trunk
    • ---
    • mod_dav_svn
    • None

    Description

      SVNAutoversioning applications like Microsoft Office and LibreOffice lock
      documents with locks that expire:
      
      $ svnadmin lslocks repo
      Path: /A/f
      UUID Token: opaquelocktoken:471bc389-d797-41d4-b963-995139d55cd2
      Owner: pm
      Created: 2014-04-03 22:23:45 +0100 (Thu, 03 Apr 2014)
      Expires: 2014-04-03 22:26:45 +0100 (Thu, 03 Apr 2014)
      Comment (1 line):
      <ns0:owner xmlns:ns0="DAV:">http://ucb.openoffice.org</ns0:owner>
      
      and then attempt to refresh such locks with a request like:
      
      LOCK /obj/repo/A/f HTTP/1.1
      Connection: TE\r
      TE: trailers
      Host: localhost:9630
      If: (<opaquelocktoken:471bc389-d797-41d4-b963-995139d55cd2>)
      Timeout: Second-180
      Pragma: no-cache
      Authorization: Basic cG06bXA=
      
      These requests fail with 412 precondition failed:
      
      [Thu Apr 03 22:26:15 2014] [error] [client 127.0.0.1] Could not LOCK
      /obj/repo/A/f due to a failed precondition (e.g. other locks).  [412, #0]
      [Thu Apr 03 22:26:15 2014] [error] [client 127.0.0.1] (2)No such file or
      directory: The precondition(s) specified by the "If:" header did not match this
      resource. At least one failure is because: a State-token was supplied, but it
      was not found in the locks on this resource.  [412, #0]
      
      Reported here and identified as caused by r859583, the fix for issue 2275:
      
      http://mail-archives.apache.org/mod_mbox/subversion-dev/201404.mbox/%3CCAJrmsKZtYQGUuPH7WAL5HKNXDGk7ADd4gmzURuRTT-Q+KzZ=xQ@mail.gmail.com%3E
      http://svn.haxx.se/dev/archive-2014-04/0025.shtml
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              philipm Philip Martin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: