[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Open MS Office Document results in numereous password requests on IE 8.0

From: <kmradke_at_rockwellcollins.com>
Date: Mon, 26 Mar 2012 11:22:55 -0500

> > I had a problem with the IE behaving very strange when trying to
download MS
> > Office documents (docx, xlsx) from a subversion server; it downloaded
them
> > as zip files instead. The fix was to add the subversion server to the
> > trusted sites in the IE settings: Tools->Internet Options, Tab
Security
> > Its a wild guess but maybe this helps with your problem too.
>
> Do you have svn:mime-type set appropriately (application/msword,
> application/msexcel) on those files? The "new" MS Office file formats
> *are* ZIP files (rename them & check it out). If you set svn:mime-type
> on those files, IE should handle them properly.

Here is one possible way to get Content-Type set if it isn't specified
with svn:mime-type:

<IfModule headers_module>
  # Fix docx/xlsx/pptx handling for IE7
  SetEnvIf Request_URI "\.docx$" docx_file
  Header set Content-Type
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
env=docx_file
  SetEnvIf Request_URI "\.xlsx$" xlsx_file
  Header set Content-Type
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
env=xlsx_file
  SetEnvIf Request_URI "\.pptx$" pptx_file
  Header set Content-Type
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
env=pptx_file
</IfModule>

Setting the svn:mime-type is the correct way, but hacks like above might
work in a pinch. Usual disclaimer applies. If you use this and
it causes problems you owe me money... :^)

Kevin R.
Received on 2012-03-26 18:23:34 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.