ramondeklein / nwebdav

.NET implementation of the WebDAV protocol
MIT License
155 stars 42 forks source link

Added Conditional Get with ETag #33

Closed olederle closed 6 years ago

olederle commented 6 years ago

Fixes an issue related to Microsoft Office. Microsoft Office might open files from the Internet in the Protected View which will prevent to save back the changes with the failure message: "UPLOAD FAILED We're sorry, someone updated the server copy and it's not possible to upload changes now."

This is caused because Office requests the file a second time if the user selects "Enable Editing". If the Server sends the file again instead returning a 304 (Not Modified) Office seems to believe that somebody has changed the document even if this is not the case.

A similar issue is also explain here: https://stackoverflow.com/questions/34138554/webdav-microsoft-excel-2016-not-able-to-save-back-changes

ramondeklein commented 6 years ago

Thanks for your contribution!

ramondeklein commented 6 years ago

I have published a new version to NuGet that contains both of your pull requests, so you can keep using NuGet instead of compiling NWebDAV yourself.