From owner-freebsd-cvsweb@FreeBSD.ORG Mon Jul 12 21:08:26 2004 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E1E616A4CE for ; Mon, 12 Jul 2004 21:08:26 +0000 (GMT) Received: from yorktown.nielsenmedia.com (yorktown.nielsenmedia.com [206.113.192.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 891BF43D3F for ; Mon, 12 Jul 2004 21:08:23 +0000 (GMT) (envelope-from Alex.Quezada@nielsenmedia.com) Received: from NMRFLIMG1.nmrlan.net (nmrflimg1.nmrlan.net [10.38.67.53]) i6CL79rE013337 for ; Mon, 12 Jul 2004 17:07:09 -0400 (EDT) Received: from nmrusdunsxg2.nielsenmedia.com (unverified) by NMRFLIMG1.nmrlan.net for ; Mon, 12 Jul 2004 17:08:03 -0400 Received: by nmrusdunsxg2.nmrlan.net with Internet Mail Service (5.5.2653.19) id ; Mon, 12 Jul 2004 17:07:54 -0400 Message-ID: <762A181C0D966E459A2EB3B810142C770493F1E4@nmrusdunsx12.nmrlan.net> From: "Quezada, Alex" To: "'freebsd-cvsweb@freebsd.org'" Date: Mon, 12 Jul 2004 17:07:20 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: Broken binaries X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 21:08:26 -0000 Hello, I'm in the process of installing cvsweb 3.0.1. So far I have most things working except for binary files. We keep MS Word and gifs in our repository. These files look perfectly fine when checked out using a cvs client, but through cvsweb they come out corrupted. It seems that the files get cut off at some point. I'm experiencing that with both Word docs and images. Any ideas what I might try to diagnose or fix the problem? Our CVS is running at 1.11.2. The binary files in question are stored with -kb flags. Thanks! Alex From owner-freebsd-cvsweb@FreeBSD.ORG Tue Jul 13 17:18:29 2004 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC82016A4CE for ; Tue, 13 Jul 2004 17:18:29 +0000 (GMT) Received: from yorktown.nielsenmedia.com (yorktown.nielsenmedia.com [206.113.192.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F09243D1D for ; Tue, 13 Jul 2004 17:18:29 +0000 (GMT) (envelope-from Alex.Quezada@nielsenmedia.com) Received: from NMRFLIMG1.nmrlan.net (nmrflimg1.nmrlan.net [10.38.67.53]) i6DHHDrE008058 for ; Tue, 13 Jul 2004 13:17:13 -0400 (EDT) Received: from nmrusdunsxg2.nielsenmedia.com (unverified) by NMRFLIMG1.nmrlan.net for ; Tue, 13 Jul 2004 13:17:18 -0400 Received: by nmrusdunsxg2.nmrlan.net with Internet Mail Service (5.5.2653.19) id ; Tue, 13 Jul 2004 13:17:51 -0400 Message-ID: <762A181C0D966E459A2EB3B810142C770493F1F1@nmrusdunsx12.nmrlan.net> From: "Quezada, Alex" To: "'freebsd-cvsweb@freebsd.org'" Date: Tue, 13 Jul 2004 13:17:17 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: RE: Broken binaries X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2004 17:18:29 -0000 Looking at the hex code of the binaries, I see that some numbers (in hex) get changed to FD. I don't notice a pattern of which numbers get changed, but it's always to FD. I actually took a small gif and changed the FD's back to the original and the gif worked. So I'm guessing this has to do with something local in my environment, since I can't find any similar problems researching the web or this list. I'd still appreciate any pointers on what could cause this. I did make sure I'm using the latest GNU tools, but some other tools may be a bit out of date... Or perhaps there's a Perl module responsible for this behavior? Thanks! Alex > -----Original Message----- > From: Quezada, Alex > Sent: Monday, July 12, 2004 5:07 PM > To: 'freebsd-cvsweb@freebsd.org' > Subject: Broken binaries > > Hello, > > I'm in the process of installing cvsweb 3.0.1. So far I have most > things working except for binary files. We keep MS Word and gifs in our > repository. These files look perfectly fine when checked out using a cvs > client, but through cvsweb they come out corrupted. It seems that the > files get cut off at some point. I'm experiencing that with both Word > docs and images. > > Any ideas what I might try to diagnose or fix the problem? Our CVS is > running at 1.11.2. The binary files in question are stored with -kb > flags. > > Thanks! > > Alex > From owner-freebsd-cvsweb@FreeBSD.ORG Fri Jul 16 15:09:12 2004 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EF3F16A4CE for ; Fri, 16 Jul 2004 15:09:12 +0000 (GMT) Received: from yorktown.nielsenmedia.com (yorktown.nielsenmedia.com [206.113.192.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id B854F43D1D for ; Fri, 16 Jul 2004 15:09:11 +0000 (GMT) (envelope-from Alex.Quezada@nielsenmedia.com) Received: from NMRFLIMG1.nmrlan.net (nmrflimg1.nmrlan.net [10.38.67.53]) i6GF7prE022945 for ; Fri, 16 Jul 2004 11:07:51 -0400 (EDT) Received: from nmrusdunsxg2.nielsenmedia.com (unverified) by NMRFLIMG1.nmrlan.net for ; Fri, 16 Jul 2004 11:09:08 -0400 Received: by nmrusdunsxg2.nmrlan.net with Internet Mail Service (5.5.2653.19) id ; Fri, 16 Jul 2004 11:09:44 -0400 Message-ID: <762A181C0D966E459A2EB3B810142C7707B2196B@nmrusdunsx12.nmrlan.net> From: "Quezada, Alex" To: "'freebsd-cvsweb@freebsd.org'" Date: Fri, 16 Jul 2004 11:09:03 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: Bug in sub hrefquote X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 15:09:12 -0000 Hi, this routine is incorrectly translating spaces into +: y/ /+/; This is wrong, and if you have directories in your path that include spaces, the link you get is wrong. I have replaced this with a substitution of '%20', which works as expected. Here's how it ends up: sub hrefquote($) { local ($_) = @_; s/ /%20/g; htmlquote($_); } There's probably other ways to do this (like urlencode), but this seems simpler. Thanks! Alex PS: I figured out my broken binary problem. BEA Weblogic's cgi interpreter was the culprit. I installed Apache, and all is peachy now.