sabre-io / dav

sabre/dav is a CalDAV, CardDAV and WebDAV framework for PHP
http://sabre.io
BSD 3-Clause "New" or "Revised" License
1.49k stars 344 forks source link

Microsoft Word opens files in READ-ONLY after moving project from HTTP to HTTPS #961

Open km-77 opened 7 years ago

km-77 commented 7 years ago

Dear All,

After moving my project with Sabre from HTTP (public_html folder) to HTTPS (private_html folder) I have noticed that Microsft Word opens the file in READ ONLY mode.

It seems that Microsoft Word is not sending LOCK method when is connecting to Sabre with HTTPS.

All files (including .htaccess) are the same for both projects and all directories are the same.

server.php is using lock plugin only.

I tried to exam the sequence of events in Charlie when HTTP and HTTPS

HTTP OPTIONS > HEAD > PROPFIND > LOCK > GET > HEAD > UNLOCK

HTTPS OPTIONS > HEAD > HEAD > GET

So with HTTPS less methods are used. However - I checked and LOCK method is supported on my Apache when on HTTPS. So the problem is that Microsoft Word is not sending LOCK method (Apache would answered it)

What can be wrong?

km-77 commented 7 years ago

I have two suspicions.

The first one - I use self-signed SSL certificate on my Apache server. Unfortunattely - since my admin has a lot of work - at this moment I don't want to ask him to generate a new SSL certificate which would contains the name of my domain. The current SSL certificate is used by more the one subdomain.

The second one - my Apache server makes use of SNI. However - on Windows 10 the problem also occurs. So I think that the second expanation is bad.

I have tested Office client with http://ajaxfilebrowser.com/ - works fine.

So the problem is that somehow - Office when opens file from my https version does not send the same WebDav http methods (LOCK) like with http version.

osnard commented 7 years ago

I've got a similar problem. But in my case the request chain in HTTPS setup is identically to the on in HTTP. Still MS Word says it can only open the file in read mode.