Bug 214571

Summary: mod_rewrite adds path info postfix after a substitution occured
Product: Red Hat Enterprise Linux 4 Reporter: Leonard den Ottolander <leonard-rh-bugzilla>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED ERRATA QA Contact: Miroslav Vadkerti <mvadkert>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: fnadge, mvadkert
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://issues.apache.org/bugzilla/show_bug.cgi?id=38642
Whiteboard:
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.
Story Points: ---
Clone Of:
: 517500 (view as bug list) Environment:
Last Closed: 2011-02-16 13:57:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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