httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: BUG in util_script.c (fwd)
Date Mon, 29 Jul 1996 20:37:45 GMT
Well, one has to agree, there is almost certainly a bug somewhere. But where?

I do hope that someone is keeping a bug list - this one warrants attention but
it almost certainly isn't going to get mine immediately.

Cheers,

Ben.

Rob Hartill wrote:
> 
> 
> not acked
> 
> ----- Forwarded message from Ivan Fabian -----
> 
> From oit.co.uk!ivan Mon Jul 29 08:39:56 1996
> X-Authentication-Warning: kea.OiT.co.uk: ivan owned process doing -bs
> Date: Mon, 29 Jul 1996 14:15:21 +0100 (BST)
> From: Ivan Fabian <ivan@OiT.co.uk>
> Reply-To: ivan@OiT.co.uk
> To: apache-bugs@apache.org
> Subject: BUG in util_script.c
> Message-ID: <Pine.LNX.3.94.960729135837.3089A-100000@kea.OiT.co.uk>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> Hi Apache developers
> 
> A week or so ago I reported a bug using your apache bug report form but
> have not heard anything back form you. I'll attach something resembling my
> report on the end.
> 
> I have looked into this a bit further and have found that the bug is in
> util_script.c about line 209. I found that if I comment out a couple of
> lines PATH_INFO appears to be set correctly. I'm sure that the consquence
> of just commenting out these lines my have bad effects in other
> circumstances. I'm hoping that you can help me avoid spending much time
> understanding what is going on to conditionally set this differently. The
> code fragment with my commented out lines is below:
> 
>     if (!r->path_info || !*r->path_info || !strcmp (r->protocol,
> "INCLUDED")) {
>         table_set (e, "SCRIPT_NAME", r->uri);
>     } else {
>         int path_info_start = strlen (r->uri) - strlen (r->path_info);
> /*      r->uri[path_info_start] = '\0'; */
>         table_set (e, "SCRIPT_NAME", r->uri);
> /*      r->uri[path_info_start] = '/'; */
>     }
> 
> I would really appreciate some help on this.
> 
> Thanks
> Ivan
> 
> 
> Original explanation:
> 
> OS: Linux and Solaris
> Apache: 1.1.1B
> 
> I think I have found a bug in Apache 1.1.1. 
> 
> With the following in srm.conf:
> 
> ScriptAlias /ivan-cgi/ /usr/local/etc/httpd/cgi-bin/cgiwrapd/ivan/
> 
> and then accessing the URL:
> 
> http://web.server/ivan-cgi/test-cgi
> 
> where cgiwrapd is a dummy cgi that just prints out a few environment
> variables. 
> 
> The cgiwrapd reports that SCRIPT_NAME=/iva
> 
> I'm not quite sure what I would expect this to be set to ('/ivan-cgi/'
> perhaps)
> 
> Has anyone else found this? Can it be fixed?
> 
> Thanks for any help.
> 
> Ivan
> 
> ----- End of forwarded message from Ivan Fabian -----
> 
> -- 
> Rob Hartill (robh@imdb.com)
> The Internet Movie Database (IMDb)  http://www.imdb.com/
>            ...more movie info than you can poke a stick at.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Mime
View raw message