You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/10/27 03:38:16 UTC

DO NOT REPLY [Bug 31911] New: - RewriteRule problem in 1.3.32

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31911>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31911

RewriteRule problem in 1.3.32

           Summary: RewriteRule problem in 1.3.32
           Product: Apache httpd-1.3
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: slin@sigrity.com


RewriteRule ^/somepath(.*)$  http://localhost:8080/$1 [P]

When requested URL is /somepath/somename?arg, it is rewritten as:
/somepath/somename?arg and the url received by localhost will 
become /somepath/somename?arg?arg

With 1.3.31 the rewritten uri is /somepath/somename and the url received by 
localhost is /somepath/somename?arg which is correct URL.

Traced the bug to the 1.3.32 mod_rewrite.c code at line 1119, the code reads:
  r->uri != r->unparsed_uri)
While in 1.3.31 mod_rewrite code, it is:
  r->uri == r->unparsed_uri)

Changed the != to == as in 1.3.31 and recompiled 1.3.32. Everything works fine 
with the change.

Hope it is fixed soon.

Thanks,

Shouguan Lin

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org