MS Office opens documents readonly with WebDAV

删除回忆录丶 提交于 2020-01-24 13:54:05

问题


We implemented our own WebDAV server. Some users having Office (Word, Excel) open documents read-only. On problem computers queries are next:

  1. OPTIONS http://pastie.org/10957339, response (after some chain of NTLM auth): http://pastie.org/10957337 (equal to these ones, where problem not reproduces)
  2. GET
  3. HEAD
  4. HEAD

Normal queries (on healthy computers) are: OPTIONS, HEAD, LOCK, GET... So, Word do not attempts to LOCK document, and opens it readonly.

We have already tried:

  1. Checked WebDAV link, it is ofe (as you can see in OPTIONS query)
  2. Checked, that OPTIONS response contains header MS-Author-Via: DAV
  3. Checked, that server does not crash. All responses are OK.
  4. Set registry key HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Internet\OpenDocumentsReadWriteWhileBrowsing to 1 as said here.
  5. Set registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\BasicAuthLevel to 2, and HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Internet\BasicAuthLevel to 2 as said here.
  6. Open documents from https://www.ajaxbrowser.com - all OK, documents opens read-write.
  7. Clearing cookies in IE, logging in IE (to provide cookies for MS Word)
  8. Trying to find differences between problem computers and healthy ones. Problem reproducing on different versions of Office, different versions of Windows (7, 8, 10), all computers connected over proxy (healthy ones too).
  9. Сlear keys in HKEY_CURRENT_USER\Software\Microsoft\Office\<version>\Common\Internet\Server Cache as said here.

Have any clue? Why is Office not trying to LOCK the document?


回答1:


You are at least missing the DAV header. Include this in the OPTIONS response:

DAV: 1,2



回答2:


The problem was in interaction of MS Office and proxy-server. When we started fiddler (instead of WireShark), that creates local proxy for catching traffic, the WebDAV begun to work correctly.



来源:https://stackoverflow.com/questions/40460818/ms-office-opens-documents-readonly-with-webdav

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!