IE7/8 do not like to correctly "open" MS office .docx files served 
directly
from a svn repo with the default svn mime type.  They will only allow you
to save them since it determines they are zip files.

The obvious solution is to just add the correct svn:mime-type, which works
fine, although it requires changes on every client if you want to use auto
props.

I was also able to do the following change on my apache 2.2 server to 
override
the default Content-Type header value.  (You must have previously loaded
the apache headers module for this to work...)

<IfModule headers_module>
  # Fix docx handling for IE7
  SetEnvIf Request_URI "\.docx$" docx_file
  Header set Content-Type 
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" 
env=docx_file
</IfModule>

docx files now are identified as word documents and the user can "open"
them from IE7/8 without having to save an intermediate copy first.

The biggest downside I can see is that this will always override the
Content-Type for .docx files, including any values set by the user
using the svn:mime-type property.  Anyone see any obvious other problems?

Kevin R.

Reply via email to