Re: [viewvc-dev] Mime issues
"C. Michael Pilato" <[email protected]> Wed, 23 Sep 2015 14:42:16 -0400
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Message-ID | <CAFVDjdyT1icYZnQVbupTsUEaDWq85mk3o9FGpOi=wfODtxAQMQ__49550.88241627$1443033756$gmane$org@mail.gmail.com> |
------=_Part_11030_778417405.1443033741167 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm embarrassed to say that I just noticed that this thread had gone unanswered (for 18 months... sheesh...). I truly hope that you've already identified the source of your troubles. Based on what you've shared with me, though, I'll still try to answer. On Fri, Feb 28, 2014 at 2:18 PM, Jeff Hieber <[email protected]> wrote= : > 2. What operation are you performing that you'd expect to yield a > download of the file but does not? Can you include a URL to your server > (feel free to obfuscate the domain name and path details if you must) tha= t > exhibits the problem? > http://cvs.cdstiger.com/viewvc.cgi/CDS/Documentation/Clients/RRSI10/RRSI1= 0-AEFRRSRM-Remittance%20Export.doc?view=3Dlog > when you click the view rather than open this file with word it opens in > the browser, in the browser you can see =E2=80=9CBranch: *MAIN* > CVS Tags: *HEAD* > File MIME type: application/msword=E2=80=9D when you view it. > The URL above is a "revision log view" URL. It is not intended to display or download a versioned file, but rather to reveal the version control history of that file. > We also added the CO into our Viewvc.conf to get the download and when we > download a .doc word won=E2=80=99t open it and says it is corrupt. > This statement leads me to believe that you already knew what I said above, but I had to be sure. At any rate, if Word won't open a CVS-versioned Word document, this is commonly caused by the fact that by default, CVS assumes that all files are human-readable, that it wants you to perform end-of-line conversion on them, etc. There's a flag that must be added to versioned binary files in CVS, -kb, which tells CVS that the file is *not* a regular old text file. Moreover, the content transformation I'm talking about here happens on the server, so ViewVC would be serving up the already-corrupted Word document from the CVS repository. This SO question kinda covers this situation: http://stackoverflow.com/questions/4723864/wincvs-commit-corrupt-word-files I deeply apologize for the massive delay in answering this question, and hope that this reply is already useless because you guys already figured out the solution. -- Mike ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=3D4251&dsMessageId=3D3= 139227 To unsubscribe from this discussion, e-mail: [[email protected]= .org]. ------=_Part_11030_778417405.1443033741167 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I'm embarrassed to say that I just noticed that this t= hread had gone unanswered (for 18 months... sheesh...).=C2=A0 I truly hope = that you've already identified the source of your troubles.=C2=A0 Based= on what you've shared with me, though, I'll still try to answer.<d= iv class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Fri, Feb 28, 201= 4 at 2:18 PM, Jeff Hieber <span dir=3D"ltr"><<a href=3D"mailto:jhieber@c= ollectone.com" target=3D"_blank">[email protected]</a>></span> wrot= e:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b= order-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:s= olid;padding-left:1ex"><div bgcolor=3D"white" lang=3D"EN-US" link=3D"#0563C= 1" vlink=3D"#954F72"><div><p><u></u><span style=3D"font-size:12pt;font-fami= ly:'Times New Roman',serif">2.=C2=A0 What operation are you perform= ing that you'd expect to yield a download of the file but does not?=C2= =A0 Can you include a URL to your server (feel free to obfuscate the domain= name and path details if you must) that exhibits the problem? <a href=3D"h= ttp://cvs.cdstiger.com/viewvc.cgi/CDS/Documentation/Clients/RRSI10/RRSI10-A= EFRRSRM-Remittance%20Export.doc?view=3Dlog" target=3D"_blank">http://cvs.cd= stiger.com/viewvc.cgi/CDS/Documentation/Clients/RRSI10/RRSI10-AEFRRSRM-Remi= ttance%20Export.doc?view=3Dlog</a> when you click the view rather than open= this file with word it opens in the browser, in the browser you can see=C2= =A0 =E2=80=9C</span>Branch: <strong><span style=3D"font-family:Calibri,sans= -serif">MAIN</span></strong> <br>CVS Tags: <strong><span style=3D"font-fami= ly:Calibri,sans-serif">HEAD</span></strong> <br>File MIME type: application= /msword=E2=80=9D when you view it. </p></div></div></blockquote><div><br></= div><div>The URL above is a "revision log view" URL.=C2=A0 It is = not intended to display or download a versioned file, but rather to reveal = the version control history of that file. =C2=A0</div><div>=C2=A0</div><blo= ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left= -width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;paddi= ng-left:1ex"><div bgcolor=3D"white" lang=3D"EN-US" link=3D"#0563C1" vlink= =3D"#954F72"><div><p><span style=3D"font-family:'Times New Roman',s= erif;font-size:12pt">We also added the CO into our Viewvc.conf to get the d= ownload and when we download a .doc word won=E2=80=99t open it and says it = is corrupt.=C2=A0</span></p></div></div></blockquote><div><br></div><div>Th= is statement leads me to believe that you already knew what I said above, b= ut I had to be sure.=C2=A0 At any rate, if Word won't open a CVS-versio= ned Word document, this is commonly caused by the fact that by default, CVS= assumes that all files are human-readable, that it wants you to perform en= d-of-line conversion on them, etc.=C2=A0 There's a flag that must be ad= ded to versioned binary files in CVS, -kb, which tells CVS that the file is= *not* a regular old text file.=C2=A0 Moreover, the content transformation = I'm talking about here happens on the server, so ViewVC would be servin= g up the already-corrupted Word document from the CVS repository.</div><div= ><br></div><div>This SO question kinda covers this situation: =C2=A0<a href= =3D"http://stackoverflow.com/questions/4723864/wincvs-commit-corrupt-word-f= iles">http://stackoverflow.com/questions/4723864/wincvs-commit-corrupt-word= -files</a></div><div><br></div><div>I deeply apologize for the massive dela= y in answering this question, and hope that this reply is already useless b= ecause you guys already figured out the solution.</div><div><br></div><div>= -- Mike</div></div></div></div> ------=_Part_11030_778417405.1443033741167--