Bug 214571 - mod_rewrite adds path info postfix after a substitution occured
Summary: mod_rewrite adds path info postfix after a substitution occured
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: httpd
Version: 4.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Joe Orton
QA Contact: Miroslav Vadkerti
URL: http://issues.apache.org/bugzilla/sho...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-08 13:02 UTC by Leonard den Ottolander
Modified: 2011-02-16 13:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: URL rewrite step "add path info postfix" adds path info from the original request back into the URL. Consequence: Unexpected results or endless rewrite loops. Fix: Backport DPI|DiscardPathInfo flag from 2.2.12. Result: Using this flag in rewrite rules fixes the unexpected behaviour and/or endless loops.
Clone Of:
: 517500 (view as bug list)
Environment:
Last Closed: 2011-02-16 13:57:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0237 0 normal SHIPPED_LIVE httpd bug fix and enhancement update 2011-02-15 16:35:07 UTC

Description Leonard den Ottolander 2006-11-08 13:02:24 UTC
For certain rewrite rules this will lead to an endless loop. In other cases the
rewrite will "only" produce a bad result and cause pages not found errors.

I could attach my own example, but I suppose the examples in the bugreports at
apache.org (http://issues.apache.org/bugzilla/show_bug.cgi?id=38642 and
http://issues.apache.org/bugzilla/show_bug.cgi?id=33022) should be self explanatory.

Issue also exists for RHEL 3. If you need a separate bug report for RHEL 3
please clone this one.

Comment 1 Joe Orton 2009-08-14 11:55:24 UTC
This behaviour was made possible with the upstream addition of the 

   DPI|DiscardPathInfo

flag in 2.2.12, so we can backport that.

Comment 5 Florian Nadge 2011-01-13 13:12:33 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause:

Consequence:

Fix:

Result:

Comment 6 Florian Nadge 2011-01-13 13:15:45 UTC
Please be so kind and add a few key words to the technical note of this bugzilla entry using the following structure:

 Cause

Consequence:

Fix:

Result:

Thanks

Comment 7 Leonard den Ottolander 2011-01-16 12:56:58 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,7 +1,7 @@
-Cause:
+Cause: URL rewrite step "add path info postfix" adds path info from the original request back into the URL.
 
-Consequence:
+Consequence: Unexpected results or endless rewrite loops.
 
-Fix:
+Fix: Backport DPI|DiscardPathInfo flag from 2.2.12.
 
-Result:+Result: Using this flag in rewrite rules fixes the unexpected behaviour and/or endless loops.

Comment 8 errata-xmlrpc 2011-02-16 13:57:28 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0237.html


Note You need to log in before you can comment on or make changes to this bug.