Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fridezlucas opened this issue Oct 28, 2024 · 1 comment
Open

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

fridezlucas opened this issue Oct 28, 2024 · 1 comment

Comments

@fridezlucas
Copy link

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

  • I have installed the certificate (with GenCertificate.ps1)
  • I do not have edited the source code
  • I have Windows 11 with Office 365

Questions

  • I try to develop a web app that can directly list and edit Office documents. The purpose is not to deactivate the protected mode.
    How can we correct this behaviour ?
@fridezlucas fridezlucas changed the title Protected mode - Can not activate edition Office Word : Protected mode - Can not activate edition Oct 28, 2024
@ramondeklein
Copy link
Owner

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants