Bug#242543: apache: PATH_INFO not set for <!--#include virtual="page.html/path?query" -->
On Wed, Apr 07, 2004 at 10:56:27AM +0100, Carl Johnstone wrote:
> Package: apache
> Version: 1.3.29.0.2-4
> Severity: normal
>
> ---- test.html ----
> <!--#echo var="PATH_INFO" -->
> <!--#echo var="QUERY_STRING" -->
> -------------------
>
> ---- test2.html -----
> <!--#include virtual="test.html/path?query" -->
> ---------------------
>
> Requesting http://site/test.html/path?query gives me:
>
> path query
>
> Requesting http://site/test2.html gives me:
>
> (none) query
>
> They should match.
No, they shouldn't! PATH_INFO '... holds the additional path information
that remains after the URI has been translated into a file path.' [1]
So, if your URI is 'http://site/test2.html'
1) URI to file translation:
http://site/test2.html => {DOCUMENT ROOT}/test2.html
2) All of the URI is used for the file translation, no path information is
left.
Do you expect to be able to path a query string to an included document or why
do you add a query part to the 'virtual' attribute in your '#include'?
R. Mattes
> I've tested this on a vanilla apache install, so it looks like an
> upsteam problem.
>
> Carl
>
>
> -- System Information:
> Debian Release: testing/unstable
> APT prefers testing
> APT policy: (500, 'testing')
> Architecture: i386 (i686)
> Kernel: Linux 2.4.25-1-686-smp
> Locale: LANG=C, LC_CTYPE=C
>
> Versions of packages apache depends on:
> ii apache-common 1.3.29.0.2-4 Support files for all Apache webse
> ii debconf 1.4.16 Debian configuration management sy
> ii dpkg 1.10.20 Package maintenance system for Deb
> ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
> ii libdb4.2 4.2.52-8 Berkeley v4.2 Database Libraries [
> ii libexpat1 1.95.6-6 XML parsing C library - runtime li
> ii libmagic1 4.07-2 File type determination library us
> ii libpam0g 0.76-15 Pluggable Authentication Modules l
> ii logrotate 3.6.5-2 Log rotation utility
> ii mime-support 3.26-1 MIME files 'mime.types' & 'mailcap
> ii perl 5.8.3-3 Larry Wall's Practical Extraction
>
> -- debconf information:
> apache/server-name: localhost
> apache/document-root: /var/www
> apache/server-port:
> * apache/enable-suexec: false
> apache/init: true
>
>
> --
> To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: