RE: [viewvc-users] Binary Files open in browser as garbage.

Raghu Kumar C <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <E812CE8265978344B7D5374A0924AF34025FE564@BLREX01.in.corp.tavant.com>
Thank you, Michael. As mentioned I checked out the latest version of
"file.ezt" and did a diff with the earlier version and added the
[if-any] [end] block. As I don't have the download (co) view allowed, it
says that the file contents are not viewable. As soon as I enable it, I
get the download/save option.

Regards,
Raghu

> -----Original Message-----
> From: C. Michael Pilato [mailto:[email protected]]
> Sent: Wednesday, September 09, 2009 20:12 PM
> To: Raghu Kumar C
> Cc: [email protected]
> Subject: Re: [viewvc-users] Binary Files open in browser as garbage.
> 
> Raghu Kumar C wrote:
> > Michael,
> >
> > 	I apologise for this late reply. I didn't see you reply and I am
> > surprised how I missed out. It could be that I didn't receive it or
I
> > would have accidentally deleted it. Please read this link for
reference:
> >
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=23
> > 87121&orderBy=createDate&orderType=desc
> >
> > I don't have 'co' in my list of allowed_views. I would like to
mention
> > that the 'download' link has "view=markup" which is already enabled
in
> > my allowed_views.
> 
> I suspect that the reason that it appears that the download link has
> "view=markup" and appears to just refresh the page is because the link
in
> the HTML looks like:
> 
>    <a href="">
> 
> That is, it has no target href.  The browser is just going to treat
that as
>  a self-reference.
> 
> And the cause is my fault.  I wrote that file.ezt template logic to
always
> recommend the download view even when that view is not available (due
to
> "co" not being in the allowed_views list).
> 
> I've just committed a fix for this.  Now, if the template is setup to
hide
> binary file contents, and the "co" (checkout/download) view is
disabled in
> viewvc.conf, the template will say, "This file's contents are not
viewable."
> but will *not* go on to recommend using the download view.
> 
> --
> C. Michael Pilato <[email protected]>
> CollabNet   <>   www.collab.net   <>   Distributed Development On
Demand

Webinar: increase profitability and cut warranty spend. Visit www.tavant.com/webinar.url

Any comments or statements made in this email are not necessarily those of Tavant Technologies.
The information transmitted is intended only for the person or entity to which it is addressed and may 
contain confidential and/or privileged material. If you have received this in error, please contact the 
sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies 
may be subject to our monitoring procedures.

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

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.