You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by John Walstra <jo...@cnet.com> on 2001/01/11 18:37:34 UTC

mod_rewrite/7057: Rewrite map rule passes $1 instead of correct value to external program

>Number:         7057
>Category:       mod_rewrite
>Synopsis:       Rewrite map rule passes $1 instead of correct value to external program
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Jan 11 09:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     johnw@cnet.com
>Release:        1.3.14
>Organization:
apache
>Environment:
VA Linux 6.2, 2.2.14-5.0.14smp, GCC 2.95.2 compiled with pentium opts

Apache/1.3.14 (Unix) mod_perl/1.24_01 mod_ssl/2.7.1 OpenSSL/0.9.6
>Description:
http://localhost/place/acme/home

RewriteEngine on
RewriteMap vlu prg:/usr/local/apache/bin/version_lookup.pl
RewriteRule ^/place/([^/]+)/([^/]+)(/*)$     /place/${vlu:$1}/Company/index.epl [E=COMPANY:$1,E=AREA:$2,E=REST:$3,L]

10.5.5.247 - - [28/Dec/2000:17:49:12 -0600] [web3/sid#823fbfc][rid#8243c1c/initial] (3) applying pattern '^/place/([^/]+)/([^/]+)(/*)$' to uri '/place/acme/home'
10.5.5.247 - - [28/Dec/2000:17:49:12 -0600] [web3/sid#823fbfc][rid#8243c1c/initial] (5) map lookup OK: map=vlu key=$1 -> val=
10.5.5.247 - - [28/Dec/2000:17:49:12 -0600] [web3/sid#823fbfc][rid#8243c1c/initial] (2) rewrite /place/acme/home -> /place/Login//Company/index.epl
10.5.5.247 - - [28/Dec/2000:17:49:12 -0600] [web3/sid#823fbfc][rid#8243c1c/initial] (5) setting env variable 'COMPANY' to 'acme'
10.5.5.247 - - [28/Dec/2000:17:49:12 -0600] [web3.chi1.channelonline.com/sid#823fbfc][rid#8243c1c/initial] (5) setting env variable 'AREA' to 'home'
10.5.5.247 - - [28/Dec/2000:17:49:12 -0600] [web3/sid#823fbfc][rid#8243c1c/initial] (5) setting env variable 'REST' to ''
>How-To-Repeat:
Machine is internal
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]