You are viewing a plain text version of this content. The canonical link for it is here.
Posted to websh-user@tcl.apache.org by David McTavish <dm...@sandvine.com> on 2003/11/13 00:24:49 UTC
websh and folders that contain spaces
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?
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"
I get the following Apache error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, you@your.address and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.
More information about this error may be available in the server error log.
Also, if I create a directory named "foo 2" and place t.ws3 in that
directory, I get the same error.
Is it possible to use directories with spaces in the filenames? I can
retrieve regular html files with no problem... I would have just assumed the
same could be true for websh script files.
Any suggestions?
d.
Re: websh and folders that contain spaces
Posted by Ronnie Brunner <ro...@netcetera.ch>.
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
Re: websh and folders that contain spaces
Posted by Ronnie Brunner <ro...@netcetera.ch>.
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?
I have a bug fix in the source file src/generic/interpool.c
It works for me and it hopefully works for you to. Just exchange the
source file form the 3.5.0 distribution with the one attached.
After some more testing I'll commit the change to the project, so the
fix will be incorporated in the next rlease.
Regards
Ronnie
----------------------------------------------------------------------
Ronnie Brunner ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich phone +41 1 247 79 79 fax +41 1 247 70 75