Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2675

Concurrent editing of MS Office documents via WebDAV fails with upload error

    Details

      Description

      I am trying to concurrently edit a Word document stored in ModeShape:

      1. As user1: open the Word document stored in ModeShape, do some modifications in it, save it, but don't close it yet
      2. As user2: open the Word document stored in ModeShape, choose the "Edit the file and merge your changes" option, do some modifications in it but don't save yet
      3. As user1: close the Word document
      4. As user2: save the Word document and close it

      I now get an upload failed error and in the log I see:

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1 in org.modeshape.webdav.methods.AbstractMethod.getLockIdFromIfHeader(AbstractMethod.java:278)

      I have debugged this, and it seems that in this case the lock token has an ETag in it:

      (<opaquelocktoken:dfa5f971-75f6-4e18-a20e-df70a11c587c> [W/"55162-1489572275688"])

      which causes the above-mentioned exception.

      I suppose this ETag should be taken into account when locking so that the merge of the two document versions is done correctly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                jacobilsoe Jacob Ilsø
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: