marx-yu / WopiHost

Office Online Server Wopi Host implement, No need Cobalt. Support DOCX, XLSX, PPTX online editing.
BSD 3-Clause "New" or "Revised" License
247 stars 94 forks source link

A bug in docx eidt at the Office Web Apps 2013,such like cache #7

Open ldybyz opened 7 years ago

ldybyz commented 7 years ago

Hi marx-yu, The problem occured at the Office Web Apps 2013. First,I open the wordedit view in browser,then I close it.I chaged this file with office tool but not with wopi. I open this file in browser again,the file view is the previous.

Hope you can help me to find problems,thanks!I am Chinese,my English is not very good,just ignore.

petrsvihlik commented 7 years ago

To support co-authoring in OOS2016 you should implement a locking mechanism here: https://github.com/marx-yu/WopiHost/blob/5d552ebee9222db92aa98d32ec95f28afe6e9fe6/WopiCobaltHost/CobaltServer.cs#L128

Documentation on locking: http://wopi.readthedocs.io/projects/wopirest/en/latest/files/Lock.html

Sample implementations:

For more about co-authoring in OWA2013 look for SupportsCoauth.