Received: (qmail 27067 invoked by uid 501); 11 Jan 2001 17:37:34 -0000 Message-Id: <20010111173734.27066.qmail@apache.org> Date: 11 Jan 2001 17:37:34 -0000 From: John Walstra Reply-To: johnw@cnet.com To: submit@bugz.apache.org Subject: Rewrite map rule passes $1 instead of correct value to external program X-Send-Pr-Version: 3.110 >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: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jan 11 09:40:01 PST 2001 >Closed-Date: Thu Jan 11 16:16:05 PST 2001 >Last-Modified: Thu Jan 11 16:16:05 PST 2001 >Originator: johnw@cnet.com >Release: 1.3.14 >Organization: >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: State-Changed-From-To: open-closed State-Changed-By: fanf State-Changed-When: Thu Jan 11 16:16:03 PST 2001 State-Changed-Why: This problem has already been reported. See PR#6671 and http://httpd.apache.org/dist/apache_1.3.14-fix.diff >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]