ramondeklein / nwebdav

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

Office Word : Protected mode - Can not activate edition #75

Open fridezlucas opened 1 week ago

fridezlucas commented 1 week ago

Hi,

I cloned the repository to test documents edition with Microsoft Office Word (Office 365). I encountered some problems when trying to test it (with Protected Mode enabled).

You can see below the behaviour of editing mode : GitHub-issue-protected-mode

My Office Word configuration (for Protected mode) is shown below : image

Steps to reproduce

  1. Apply protected mode for potentially dangerous locations
  2. Open a document from an URL (I type ms-word:ofe|u|https://localhost:60225/Doc2.docx in my browser, then I open this document in Office)
  3. Office Word opened document in Protected Mode
  4. I click on button to activate the document edition
  5. Word closed and opened the document to apply Edition mode
  6. ⚠️ When document is opened the second time, it is always in Protected mode.

Alternative

  1. Disable Protected mode for potentially dangerous locations
  2. Reopen document with the same URL
  3. Document is directly opened in edition mode

This alternative is not recommended and not desired. I do not want to update this setting on each machine that will use my web application. Moreover, there is not this setting on macOS.

Notices

Questions

ramondeklein commented 1 week ago

This seems like Office is expecting something special from the WebDAV server, but I'm no expert on Office. Please enable debug logging and try to check the requests that Office makes and how NWebDAV responds to it. Maybe there are some special requests that can't be honored and cause this issue. I cannot really help you with that...