httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject [PATCH] PR#40 multiviews not behaving properly with path info
Date Tue, 04 Mar 1997 22:31:07 GMT
Petr's explanation looks dead on.  I've taken his suggestion and included
a patch.  PR#40 looks like user error.

Dean

On Fri, 21 Feb 1997, Petr Lampa wrote:

> > 
> > Ain't gonna happen before 1.2b7 unless magic happens:
> > 
> ...
> >   * multiviews not behaving properly with path info (PR#40)
> > 
> 
> This is not related with multiviews. It does the same for
> 
> 	http://myhost/foo.html/bar
> 
> The question is what should be done, if path info is not null
> and the referenced file is not a CGI script. Default handler in http_core.c
> checks path_info at least from 1.0:
> 
>    if (r->finfo.st_mode == 0 || (r->path_info && *r->path_info)) {
>        	log_reason("File does not exist", r->filename, r);
> 	return NOT_FOUND;
>    }
> 
> So the error is OK, but it should contain path_info:
> 
>        	log_reason("File does not exist", r->path_info?pstrcat(r->pool, 
> 			r->filename, r->path_info, NULL):NULL, r);
> 
> 
> 							Petr 
> 
> -- 
> Department of Computer Science and Engineering  E-mail: lampa@fee.vutbr.cz
> Faculty of El. Engineering and Comp. Science	Phone: (+42 5) 7275/225,111
> Technical University of Brno			Fax:  (+42 5) 41211141
> Bozetechova 2, 612 66 Brno, Czech Republic
> 

Mime
View raw message