RE: [viewvc-users] ViewVC and Office 2007

Hamid Ghassemi <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <E68C50346F64774D91181BA508FD30140388CECF__20958.1792507835$1247767919$gmane$org@nrs12ppmail01.medassets.com>
Thanks, using the correct Mime Types took care of the download issue as a zip file.  However, there is the issue of viewing the file which would open the file as text, hence seeing un-readable characters.  Is there is a setting in ViewVC configuration file which will prevent this from happening?

Hamid




Hamid Ghassemi
Lead Software Engineer

MedAssets
14405 SE 36th St Suite 206
Bellevue WA 98006
Direct - (877) 937-3600 X502
Cell - 425-241-6797



From: C. Michael Pilato [mailto:[email protected]] 
Sent: Thursday, July 16, 2009 7:10 AM
To: Ghassemi, Hamid
Cc: [email protected]
Subject: Re: [viewvc-users] ViewVC and Office 2007

Hamid Ghassemi wrote:
> There seems to be a problem with Mime Type setting in ViewVC.  each 
> time we click on a link in viewvc, the file that is opened in IE 
> contains garbage.  Even if we try to download the file it is 
> downloaded in form of a .Zip file.  I have setup the correct Mime 
> Types in Apache since Subversion's own web interface allows IE to 
> launch the appropriate office application.

You may or may not realize this, but the Office 2007 file formats *are* ZIP archives which contain XML documents.  The Office 2007 user interface conceals this fact like any good UI would (why should users care about the internal format of their data files?), but it's not altogether out of line for a web server or client to want to open those things with a ZIP program.

Setting up the right MIME types in Apache is the correct first step, especially if you did this by adding the right mappings to Apache's mime.types file.  Once that's done, you can configure ViewVC to actually refer to Apache's mime.types file for its own mappings.  Simply set mime_types_file = /path/to/apache2/conf/mime.types.

--
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2371841

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.