Return-Path: Delivered-To: apmail-tcl-websh-dev-archive@www.apache.org Received: (qmail 4707 invoked from network); 14 Nov 2003 00:38:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Nov 2003 00:38:40 -0000 Received: (qmail 93592 invoked by uid 500); 14 Nov 2003 00:38:25 -0000 Delivered-To: apmail-tcl-websh-dev-archive@tcl.apache.org Received: (qmail 93561 invoked by uid 500); 14 Nov 2003 00:38:25 -0000 Mailing-List: contact websh-dev-help@tcl.apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list websh-dev@tcl.apache.org Received: (qmail 93548 invoked from network); 14 Nov 2003 00:38:24 -0000 Received: from unknown (HELO netcetera.ch) (193.192.248.139) by daedalus.apache.org with SMTP; 14 Nov 2003 00:38:24 -0000 Received: from fire-17.netcetera.ch (fire-17 [193.192.248.210]) by (8.9.3p2/8.7.3) with ESMTP id BAA17923; Fri, 14 Nov 2003 01:38:31 +0100 (MET) Received: by fire-17.netcetera.ch (8.9.3) id BAA27888; Fri, 14 Nov 2003 01:38:30 +0100 (MET) Date: Fri, 14 Nov 2003 01:38:30 +0100 From: Ronnie Brunner To: David McTavish Cc: websh-dev@tcl.apache.org Subject: Re: websh and folders that contain spaces Message-ID: <20031114003830.GD27724@netcetera.ch> Reply-To: Ronnie Brunner References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm taking this to the dev list ... I tracked the problem down: in src/generic/interpool.c there is a bug in lines 304-308: mapCmd = Tcl_NewStringObj("web::interpmap ", -1); Tcl_IncrRefCount(mapCmd); Tcl_AppendToObj(mapCmd, filename, -1); res = Tcl_EvalObjEx(conf->mainInterp, mapCmd, 0); Tcl_DecrRefCount(mapCmd); The command to be evaled is a string instead of a list with two elements. Does anybody have a quick fix for this? > I'm using version 3.5.0 that I downloaded from the Apache site. I then > compiled this to work in mod_websh mode. I'm running on FreeBSD 4.8 with > Apache 1.3.28. I also have tcl 8.3.5 installed along with itcl 3.2 and > tcllib 1.2. > My websh.conf file is completely empty (not sure if it should be, but was > the default file), and I've modified my apache httpd.conf as follows: > > LoadModule websh_module libexec/apache/mod_websh83.so.1 > AddModule mod_websh.c > > WebshConfig /usr/local/etc/apache/websh.conf > AddHandler websh .ws3 > AddHandler websh .wsh > > > > I don't believe I have any initializer code that I'm aware of. I've just > been vim'ing .ws3 files directly in my root directory until now. I realized > that I was going to need spaces in my directory names so that I could > dynamically create the navigation system based on file elements. Seemed like > a good idea at the time. > > Anything else I can provide that may help? > > > d. > > > > > From: Ronnie Brunner [mailto:ronnie@netcetera.ch] > Sent: Thursday, November 13, 2003 3:01 AM > To: David McTavish > Cc: 'websh-user@tcl.apache.org' > Subject: Re: websh and folders that contain spaces > > > Hi > > > Is there a bug in websh when it is trying to parse .ws3 files when those > > files are contained in a folder that contains spaces in the names? > > We used to have a bug in web::include which was fixed in websh3.5 > which sounded like that. Are you sure you work with the latest > release? It was fixed a very long time ago when Websh was still > version 3.0 (May 2002) > > If you work with Websh3.5.0 there I need to know more about your setup > (mod_websh/cgi, interp. classes. initializer code ...) > > Regards > Ronnie > > > ie: > > I have the file t.ws3 which contains: > > web::put test > > > > > > If I put this in my root folder, everything works fine. > > As soon as I rename this file, to say: > > mv t.ws3 "t t.ws3" > > Ronnie Brunner ronnie.brunner@netcetera.ch > Netcetera AG, 8040 Zuerich phone +41 1 247 79 79 fax +41 1 247 70 75 > > To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org > For additional commands, e-mail: websh-user-help@tcl.apache.org > > To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org > For additional commands, e-mail: websh-user-help@tcl.apache.org ---------------------------------------------------------------------- Ronnie Brunner ronnie.brunner@netcetera.ch Netcetera AG, 8040 Zuerich phone +41 1 247 79 79 fax +41 1 247 70 75 --------------------------------------------------------------------- To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org For additional commands, e-mail: websh-dev-help@tcl.apache.org