Date: Sun, 04 Feb 2007 00:05:03 +0300 From: Roman Kurakin <rik@rikbsd.org> To: Kris Kennaway <kris@obsecurity.org> Cc: rik@FreeBSD.org, ports@freebsd.org, Roman Kurakin <rik@inse.ru>, pav@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: ports/102499: lftp asc file checksum mismatch Message-ID: <45C4F8FF.9000305@rikbsd.org> In-Reply-To: <20070124230457.GA40324@xor.obsecurity.org> References: <1169641247.96993.10.camel@pav.hide.vol.cz> <45B7D5BD.4070400@inse.ru> <20070124221723.GA39811@xor.obsecurity.org> <45B7E222.7010301@inse.ru> <20070124230457.GA40324@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Kris Kennaway wrote: > On Thu, Jan 25, 2007 at 01:48:02AM +0300, Roman Kurakin wrote: > > >>> that lftp gets a corrupted distfile when fetching through a squid >>> proxy. This is because in the default configuration squid fetches all >>> plain text files in ftp ascii mode, which does CR/LF translation and >>> botches up the checksum. >>> >>> >> IIRC this is not a bug and squid do not translate in all cases >> Any way the file is marked as a text and any such translation >> do not look like a violation. I guess it was done for >> convenience of M$ users. >> > > "Bug" in the sense of broken behaviour. IMO it is broken behaviour > for squid to force a non-default translation policy on the client. If > a FTP client really wants a non-default translation mode the protocol > allows them to specify it. > > >> IIRC it is impossible to switch this >> off in squid (this is the only thing they was wrong). >> > > It can be corrected by editing squid's mime.conf. > > >> My point of view that we should not blame the squid, this wouldn't >> help. Now I know that there is such problem, you know, a couple >> of peoples who will read this. But for the rest the project would >> look in the bad way. More over not all peoples can control which >> proxy in front of them even if they know about this problem. My >> idea was to tech a fetch to request a binary mode for all files >> despite of their mime type. >> > > This may not be hard to do, can you look into it? > I've made a patch but it was ugly and was broken by update of libfetch. I'll try to check the current state of libfetch and update my patch. rik > The other option would be for the squid port to install a fixed > mime.conf. > > Kris >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45C4F8FF.9000305>