From owner-freebsd-cvsweb@FreeBSD.ORG Wed Aug 24 02:44:34 2005 Return-Path: X-Original-To: freebsd-cvsweb@freebsd.org 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 3B4CF16A41F for ; Wed, 24 Aug 2005 02:44:34 +0000 (GMT) (envelope-from stpierce@att.com) Received: from mail120.messagelabs.com (mail120.messagelabs.com [216.82.255.211]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F27D43D45 for ; Wed, 24 Aug 2005 02:44:33 +0000 (GMT) (envelope-from stpierce@att.com) X-VirusChecked: Checked X-Env-Sender: stpierce@att.com X-Msg-Ref: server-10.tower-120.messagelabs.com!1124851413!5854473!7 X-StarScan-Version: 5.4.15; banners=-,-,- X-Originating-IP: [192.128.167.132] Received: (qmail 19167 invoked from network); 24 Aug 2005 02:44:31 -0000 Received: from unknown (HELO attrh2i.attrh.att.com) (192.128.167.132) by server-10.tower-120.messagelabs.com with SMTP; 24 Aug 2005 02:44:31 -0000 Received: from acclust03evs1.ugd.att.com (135.37.16.10) by attrh2i.attrh.att.com (7.2.052) id 4308A638003BFFDF for freebsd-cvsweb@freebsd.org; Tue, 23 Aug 2005 22:44:31 -0400 X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 23 Aug 2005 22:44:31 -0400 Message-ID: <703B56AF3EFA6D488043B41602FB32170AFDE0A0@ACCLUST03EVS1.ugd.att.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CVSRepositories Thread-Index: AcWoVcC9CD3pI3IBTjaVrOpbaglRbw== From: "Pierce, Steven T \(Steve\), CMO" To: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: CVSRepositories X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 02:44:34 -0000 I saw the following posting. I'm experiencing the same thing. Were you = able to find the fix for the error? CVSRepositories Joe McCarty jmccarty at scoe.org = =20 Fri Dec 17 10:08:18 PST 2004=20 * Previous message: Ports with duplicate LATEST_LINKS = =20 * Next message: CVSRepositories = =20 * Messages sorted by: [ date ] = [ thread ] = [ subject ] = [ author ] = =20 _____ =20 I have installed RANCID and CVSWeb on a Fedora Core 2 box. RANCID is =20 fully funcitonal--it can log into my devices, get the configs, increment = =20 versions, and email diffs. I have the following lines in cvsweb.conf pointing to my RANCID CVS =20 repository: @CVSrepositories =3D ( # 'local' =3D> ['Local Repository', '/var/cvs'], # 'freebsd' =3D> ['FreeBSD', '/var/ncvs'], # 'openbsd' =3D> ['OpenBSD', '/var/ncvs'], # 'netbsd' =3D> ['NetBSD', '/var/ncvs'], # 'ruby' =3D> ['Ruby', '/var/anoncvs/ruby'], 'rancid' =3D> ['Rancid', = '/home/rancid/var/rancid/CVS'], ); # The default CVS root. Note that @CVSrepositories is list, not a hash, # so you'll want to use 2 * 0-based-index-number here; or set this = directly # to the default's symbolic name. Unless specified, the first valid one = in # @CVSrepositories is used as the default. # # For example: # #$cvstreedefault =3D $CVSrepositories[2 * 0]; $cvstreedefault =3D 'rancid'; Pointing my browser at http:/foo.org/cgi-bin/cvsweb.cgi, I draw an error = =20 message, "Error: No valid CVS roots found! See @CVSrepositories in the =20 configuration file (/etc/cvsweb/cvsweb.conf)." log/httpd/error_log states, "Root '/home/rancid/var/rancid/CVS' defined = in =20 @CVSrepositories is not a directory, entry ignored at =20 /var/www/cgi-bin/cvsweb.cgi line 491." The referenced line in cvsweb.cgi is in the following block: 483 # CVS roots 484 # 485 my $rootfound =3D 0; 486 for (my $i =3D 0; $i < scalar(@CVSrepositories); $i +=3D 2) { 487 my $key =3D $CVSrepositories[$i]; 488 my ($descr, $root) =3D @{$CVSrepositories[$i+1]}; 489 $root =3D canonpath($root); 490 unless (-d $root) { 491 warn("Root '$root' defined in \@CVSrepositories is not a =20 directory, " . 492 'entry ignored'); 493 next; 494 } /home/rancid/var/rancid/CVS is indeed a directory, and is the root of = the =20 RANCID CVS tree. An evironmental variable "CVSROOT" is define for root, = =20 pointing at this folder. What is my error, and what is the fix? Thanks! Notice to Recipient: Information contained in this message may be privileged, confidential = and protected from disclosure. If you are not an intended recipient, it is strictly prohibited to use, disseminate or copy this communication. If = you have received this in error, please reply to the sender and then = delete the message. Thank you. _____ =20 * Previous message: Ports with duplicate LATEST_LINKS = =20 * Next message: CVSRepositories = =20 * Messages sorted by: [ date ] = [ thread ] = [ subject ] = [ author ] = =20 _____ =20 More information about the freebsd-cvsweb mailing list = =20 Steve Pierce Principal Consultant Network Design & Consulting Division = =20 AT&T Solution Center 312-230-4005 From owner-freebsd-cvsweb@FreeBSD.ORG Fri Aug 26 10:49:06 2005 Return-Path: X-Original-To: freebsd-cvsweb@freebsd.org 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 DE38116A41F for ; Fri, 26 Aug 2005 10:49:06 +0000 (GMT) (envelope-from charles.buysschaert@advalvas.be) Received: from xelia.globesee.com (xelia.globesee.com [217.64.245.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF33643D45 for ; Fri, 26 Aug 2005 10:49:05 +0000 (GMT) (envelope-from charles.buysschaert@advalvas.be) Received: by xelia.globesee.com (Advalvas mail, from userid 48) id 7B429286C6F; Sun, 21 Aug 2005 20:43:26 +0200 (CEST) Received: from 217.136.71.24 (SquirrelMail authenticated user charles.buysschaert); by www.advalvas.be with HTTP; Sun, 21 Aug 2005 20:43:26 +0200 (CEST) Message-ID: <1456.217.136.71.24.1124649806.squirrel@217.136.71.24> Date: Sun, 21 Aug 2005 20:43:26 +0200 (CEST) From: charles.buysschaert@advalvas.be To: freebsd-cvsweb@freebsd.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Download file with Content type containing '+' X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 10:49:07 -0000 Hello, After installing cvsweb on my Debian, I got an error "Unsupported content type: text/x-c++src" while trying to download cpp files. My mime.types file associates *.cpp with "text/x-c++src". The cvsweb.cgi script performs the following check : if (defined($t)) { ($input{'content-type'}) = ($t =~ m|^([-0-9A-Za-z]+/[-0-9A-Za-z\.]+)$|) or fatal('500 Internal Error', 'Unsupported content type: %s', $t); } I could work around this by changing [-0-9A-Za-z\.] into [+-0-9A-Za-z\.] Is there any reason why '+' wasn't included there? Thank you, Charles ---------------------------------------------------------------------------------- Plaats je zoekertjes GRATIS op AdValvas Placez votre petite annonce GRATUITEMENT sur AdValvas http://www.advalvas.be From owner-freebsd-cvsweb@FreeBSD.ORG Fri Aug 26 17:54:59 2005 Return-Path: X-Original-To: freebsd-cvsweb@freebsd.org 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 28A8B16A41F for ; Fri, 26 Aug 2005 17:54:59 +0000 (GMT) (envelope-from scop@freebsd.org) Received: from smtp2.pp.htv.fi (smtp2.pp.htv.fi [213.243.153.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCCFA43D49 for ; Fri, 26 Aug 2005 17:54:58 +0000 (GMT) (envelope-from scop@freebsd.org) Received: from [192.168.2.4] (cs168006.pp.htv.fi [213.243.168.6]) by smtp2.pp.htv.fi (Postfix) with ESMTP id 1BC44296BAD for ; Fri, 26 Aug 2005 20:54:57 +0300 (EEST) From: Ville =?ISO-8859-1?Q?Skytt=E4?= To: freebsd-cvsweb@freebsd.org In-Reply-To: <1456.217.136.71.24.1124649806.squirrel@217.136.71.24> References: <1456.217.136.71.24.1124649806.squirrel@217.136.71.24> Content-Type: text/plain Organization: FreeBSD Date: Fri, 26 Aug 2005 20:54:56 +0300 Message-Id: <1125078896.16166.260.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit Subject: Re: Download file with Content type containing '+' X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 17:54:59 -0000 On Sun, 2005-08-21 at 20:43 +0200, charles.buysschaert@advalvas.be wrote: > if (defined($t)) { > ($input{'content-type'}) = ($t =~ m|^([-0-9A-Za-z]+/[-0-9A-Za-z\.]+)$|) > or fatal('500 Internal Error', > 'Unsupported content type: %s', $t); > } > > I could work around this by changing > [-0-9A-Za-z\.] into [+-0-9A-Za-z\.] > > Is there any reason why '+' wasn't included there? Yes, a bug ;). Fixed in CVS, thanks for the report.