Received: (qmail 65769 invoked by uid 501); 29 Oct 2000 14:19:53 -0000 Message-Id: <20001029141953.65767.qmail@locus.apache.org> Date: 29 Oct 2000 14:19:53 -0000 From: Rick Lei Reply-To: rick@chinaren.com To: submit@bugz.apache.org Subject: mod_rewrite of 1.3.14 doesn't expand %{VARIABLE} in ${MapName:LookupKey} X-Send-Pr-Version: 3.110 >Number: 6756 >Category: mod_rewrite >Synopsis: mod_rewrite of 1.3.14 doesn't expand %{VARIABLE} in ${MapName:LookupKey} >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: duplicate >Submitter-Id: apache >Arrival-Date: Sun Oct 29 06:20:00 PST 2000 >Closed-Date: Sun Oct 29 18:20:56 PST 2000 >Last-Modified: Sun Oct 29 18:20:56 PST 2000 >Originator: rick@chinaren.com >Release: 1.3.14 >Organization: >Environment: Linux Slackware 7.0/kernel 2.2.17, with egcs-2.91.66 19990314/Linux >Description: mod_rewrite of 1.3.14 doesn't expand %{VARIABLE} variables in a ${MapName:LookupKey} context. e.g., the following lines in httpd.conf RewriteMap lowercase int:tolower RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 works well in 1.3.12¡£I got %{HTTP_HOST} expanded first, then ${lowercase:} convert it to lowercase. But 1.3.14 takes %{HTTP_HOST} as normal text, skipping expanding it and I got a %{http_host} at last. Here's rewrite.log I got: >How-To-Repeat: try to put these lines in httpd.conf: RewriteMap lowercase int:tolower RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 and you can only get 404 error¡£ >Fix: I'm waiting for good news from ya guys :) >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: slive State-Changed-When: Sun Oct 29 18:20:56 PST 2000 State-Changed-Why: This is a known bug. See http://bugs.apache.org/index.cgi/full/6671 and http://httpd.apache.org/dist/apache_1.3.14-fix.diff Class-Changed-From-To: sw-bug-duplicate Class-Changed-By: slive Class-Changed-When: Sun Oct 29 18:20:56 PST 2000 >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! ]