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 2006/02/14 15:17:06 UTC
DO NOT REPLY [Bug 38642] New: - mod_rewrite adds path info postfix after a substitution occured
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=38642>.
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=38642
Summary: mod_rewrite adds path info postfix after a substitution
occured
Product: Apache httpd-2
Version: 2.0.55
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: bugs@httpd.apache.org
ReportedBy: robsiegen@googlemail.com
Testcase:
-> RewriteRules in per-dir context, /.htaccess (root)
-> used RewriteRules:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(test|robots\.txt)
RewriteRule ^(.*) test/$1 [C]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^test/(.*)$ /test/index.php?q=$1 [L,QSA]
Description: Eyery Request should go to /test/... and furthermore if the file
does not exist in /test/..., it should go to /test/index.php?q=...
-> Request: /CSS/style.css
-> expected result: /test/index.php?q=CSS/style.css (all cond. are true)
-> real result: /test/index.php?q=CSS/style.css/style.css
Problem: see attached Rewritelog
The 1st RewriteRule rewrites the request to the filepath test/CSS/style.css
while the 2nd RewriteRule matches now against test/CSS/style.css/style.css and
not against the expected filepath test/CSS/style.css, because the
"/style.css"-part is handled as path info, which is added again to the new filepath.
I would expect once a substitution occurs, path info from the original request
isn't added anymore in this round of processing.
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38642] - mod_rewrite adds path info postfix after a substitution occured
Posted by bu...@apache.org.
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=38642>.
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=38642
bobsiegen@googlemail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nikzze@mail.ru
------- Additional Comments From bobsiegen@googlemail.com 2007-01-20 07:29 -------
*** Bug 41423 has been marked as a duplicate of this bug. ***
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38642] - mod_rewrite adds path info postfix after a substitution occured
Posted by bu...@apache.org.
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=38642>.
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=38642
------- Additional Comments From bobsiegen@googlemail.com 2006-09-25 10:41 -------
*** Bug 33022 has been marked as a duplicate of this bug. ***
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38642] - mod_rewrite adds path info postfix after a substitution occured
Posted by bu...@apache.org.
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=38642>.
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=38642
ian@ianbrandt.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ian@ianbrandt.com
------- Additional Comments From ian@ianbrandt.com 2006-05-23 16:43 -------
A possible second example for verification purposes:
In per-directory .htaccess:
RewriteRule ^(.*)/index\.html$ $1/
The RewriteLog I see (stripped down and paraphrased for clarity):
(3) add path info postfix: /document/root/foo ->
/document/root/foo/index.html
(3) strip per-dir prefix: /document/root/foo/index.html -> foo/index.html
(3) applying pattern '^(.*)/index\.html$' to uri 'foo/index.html'
(2) rewrite foo/index.html -> foo/
(3) add per-dir prefix: foo/ -> /document/root/foo/
(3) add path info postfix: /document/root/foo/ ->
/document/root/foo//index.html
[...]
The expected behavior is that 'foo/index.html' would be rewritten to 'foo/',
however the "add path info postfix" step just adds it right back on.
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38642] - mod_rewrite adds path info postfix after a substitution occured
Posted by bu...@apache.org.
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=38642>.
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=38642
------- Additional Comments From gormanjz@hotmail.com 2007-02-22 19:09 -------
This looks very similar to the old bug http://archive.apache.org/gnats/7879.
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38642] - mod_rewrite adds path info postfix after a substitution occured
Posted by bu...@apache.org.
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=38642>.
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=38642
------- Additional Comments From robsiegen@googlemail.com 2006-02-14 15:18 -------
Created an attachment (id=17689)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17689&action=view)
Rewritelog
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38642] - mod_rewrite adds path info postfix after a substitution occured
Posted by bu...@apache.org.
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=38642>.
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=38642
gormanjz@hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gormanjz@hotmail.com
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38642] - mod_rewrite adds path info postfix after a substitution occured
Posted by bu...@apache.org.
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=38642>.
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=38642
------- Additional Comments From bobsiegen@googlemail.com 2006-09-25 10:52 -------
Created an attachment (id=18910)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18910&action=view)
Rush patch used some time ago against 2.0.55
I didn't port it into trunk since I hope that there's another method instead of
using r->notes.
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38642] - mod_rewrite adds path info postfix after a substitution occured
Posted by bu...@apache.org.
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=38642>.
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=38642
------- Additional Comments From nakedddrfreak@gmail.com 2007-12-19 03:27 -------
I'm still experiencing this bug in 2.2.6.
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org