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=40194>.
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=40194

           Summary: isapi_redirect.dll corrupts query string when using a
                    rewrite rule
           Product: Tomcat 5
           Version: Unknown
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:AJP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


I've installed isapi_redirect.dll (tomcat-connectors version 1.2.18) on IIS 5.1.
 Once I got it working it works fine so long as you don't invoke a rewrite rule
that ends up with a longer path and a query string.

In my rewrite_rule_file.properties:
/pub/=/widgetsample/

Hit a servlet that is served by that rewrite
example http://localhost/pub/pf/request.htm?myparam=foo

When the URL hits tomcat, the url is corrupt.
example result http://localhost//widgetsample/pf/request.htm?uest.htm
Should be http://localhost//widgetsample/pf/request.htm?myparam=foo

I debugged into it, and the problem is the call to simple_rewrite in
jk_isapi_plugin.c line 924 is trying to do an in place modification of the path,
which is also the same buffer that the query string is using.

An in place modification is only going to work if the target path is less than
or equal to the length of the starting path.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to