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 2009/04/21 21:13:20 UTC
DO NOT REPLY [Bug 47066] New: Header edit replacement string is not
a format string.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47066
Summary: Header edit replacement string is not a format string.
Product: Apache httpd-2
Version: 2.2.10
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: mod_headers
AssignedTo: bugs@httpd.apache.org
ReportedBy: asf@sameprecision.org
It would be handy to have the replacement string in (Request)Header edit be a
formatted string or something similar to the rewritten URI in a rewrite rule.
An Example: add a port number from environment variable to Host Header
SetEnv envVariable {some port number from somewhere--a rewritemap lookup for
instance}
RequestHeader edit Host ^([^:]*) $1:%{envVariable}e
How I do it now:
SetEnv envVariable {some port number from somewhere}
Rewritecond %{HTTP:Host} ^([^:]*)
Rewriterule ^ - [env=newHost:%1:%{env:envVariable}]
RequestHeader set Host %{newHost}e
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 47066] Header edit replacement string is not a
format string.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47066
--- Comment #3 from Marc Stern <ma...@approach.be> 2010-10-09 08:11:55 EDT ---
Would be handy to also parse the regex for environment variables.
We would need to parse value before the line
'new->regex = ap_pregcomp(cmd->pool, value, AP_REG_EXTENDED);'
How could we use'parse_format_string' at this stage?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 47066] Header edit replacement string is not a
format string.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47066
Marc Stern <ma...@approach.be> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marc.stern@approach.be
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 47066] Header edit replacement string is not a
format string.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47066
--- Comment #1 from Dennis Docter <de...@d23.nl> 2010-06-25 10:02:08 EDT ---
Created an attachment (id=25642)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25642)
Run subs argument through parse_tags, like with set and other actions
- Parses the subs arguments for tags
- Runs the parsed argument through parse_tags just before substitution.
Also fixes edit* bug to correctly update the result.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 47066] Header edit replacement string is not a
format string.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47066
Dennis Docter <de...@d23.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
CC| |dennis@d23.nl
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 47066] Header edit replacement string is not a format string.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47066
felix.almeida@rci.rogers.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #4 from felix.almeida@rci.rogers.com ---
*** This bug has been marked as a duplicate of bug 55039 ***
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 47066] Header edit replacement string is not a
format string.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47066
Dennis Docter <de...@d23.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #25643|application/octet-stream |text/plain
mime type| |
Attachment #25643|0 |1
is patch| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 47066] Header edit replacement string is not a
format string.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47066
--- Comment #2 from Dennis Docter <de...@d23.nl> 2010-06-25 10:05:38 EDT ---
Created an attachment (id=25643)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25643)
Run subs argument through parse_tags + backports from trunk
Same as the other patch, but for 2.2 branch.
Also some backported stuff from trunk is in there. (edit*, content-type)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org