问题
We implemented our own WebDAV server. Some users having Office (Word, Excel) open documents read-only. On problem computers queries are next:
- OPTIONS http://pastie.org/10957339, response (after some chain of NTLM auth): http://pastie.org/10957337 (equal to these ones, where problem not reproduces)
- GET
- HEAD
- 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:
- Checked WebDAV link, it is ofe (as you can see in OPTIONS query)
- Checked, that OPTIONS response contains header MS-Author-Via: DAV
- Checked, that server does not crash. All responses are OK.
- Set registry key
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Internet\OpenDocumentsReadWriteWhileBrowsing
to 1 as said here. - Set registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\BasicAuthLevel
to 2, andHKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Internet\BasicAuthLevel
to 2 as said here. - Open documents from https://www.ajaxbrowser.com - all OK, documents opens read-write.
- Clearing cookies in IE, logging in IE (to provide cookies for MS Word)
- 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).
- С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