Bug 46165 - Slash in URL causes endless loop
Summary: Slash in URL causes endless loop
Status: RESOLVED DUPLICATE of bug 38642
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_rewrite (show other bugs)
Version: 2.2.9
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-07 03:09 UTC by Michael Mönch
Modified: 2008-12-14 06:15 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mönch 2008-11-07 03:09:54 UTC
Hi, I'm using the following rule:
RewriteRule ^([0-9]+_[^\-]+)\-([^\-]+).*\.html$ $1.html?tag=$2 [N]

An URL like "1_a-a/1_a-a.html" is correctly rewritten to "1_a.html?tag=a/1_a" and I would expect that the rewriter quits after this because the new URL does not match the Rewrite-Rule but it does not. The rewriter gets stuck in an endless loop and starts eating up memory:

rewrite '1_a-a/1_a-a.html' -> '1_a.html?tag=a/1_a'
rewrite '1_a.html/1_a-a.html' -> '1_a.html/1_a.html?tag=a'
rewrite '1_a.html/1_a.html/1_a-a.html' -> '1_a.html/1_a.html/1_a.html?tag=a'
rewrite '1_a.html/1_a.html/1_a.html/1_a-a.html' -> '1_a.html/1_a.html/1_a.html/1_a.html?tag=a'
rewrite '1_a.html/1_a.html/1_a.html/1_a.html/1_a-a.html' -> '1_a.html/1_a.html/1_a.html/1_a.html/1_a.html?tag=a'
(...)
Comment 1 Ruediger Pluem 2008-11-07 03:37:08 UTC
Bugzilla is no user support forum but for reporting bugs. Please ask on users@httpd.apache.org first as this looks like to be a configuration issue.
Comment 2 Bob Ionescu 2008-12-14 06:15:20 UTC
Not invalid, but a jet another duplicate of the continuously path-info appending bug after a substitution was applied.

*** This bug has been marked as a duplicate of bug 38642 ***