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 2013/01/15 06:09:48 UTC
[Bug 54419] New: Case sensitive option in "ErrorDocument"
https://issues.apache.org/bugzilla/show_bug.cgi?id=54419
Bug ID: 54419
Summary: Case sensitive option in "ErrorDocument"
Product: Apache httpd-2
Version: 2.4.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: bugs@httpd.apache.org
Reporter: tixu@cs.ucsd.edu
Classification: Unclassified
Hi,
The ErrorDocument has a case sensitive option "default", which conflicts with
the case insensitivity of Apache's configuration design. According to my
understanding, httpd champions case insensitivity for both configuration
directive and configuration options.
The fix is straightforward as follows:
--- server/core.c 2012-11-28 12:57:48.599129124 -0800
+++ server/core.c 2013-01-14 21:02:01.601358837 -0800
@@ -1497,7 +1497,7 @@
RESPONSE_CODES);
}
- if (strcmp(msg, "default") == 0) {
+ if (strcasecmp(msg, "default") == 0) {
/* special case: ErrorDocument 404 default restores the
* canned server error response
*/
--
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 54419] Case sensitive option in "ErrorDocument"
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54419
--- Comment #3 from Graham Leggett <mi...@sharp.fm> ---
Backported to v2.4.5.
--
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 54419] Case sensitive option in "ErrorDocument"
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54419
Christophe JAILLET <ch...@wanadoo.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
--
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 54419] Case sensitive option in "ErrorDocument"
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54419
Christophe JAILLET <ch...@wanadoo.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Christophe JAILLET <ch...@wanadoo.fr> ---
Fixed on trunk. r1465190
Thanks for the report.
--
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 54419] Case sensitive option in "ErrorDocument"
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54419
Tianyin Xu <ti...@cs.ucsd.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tixu@cs.ucsd.edu
--
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 54419] Case sensitive option in "ErrorDocument"
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54419
--- Comment #1 from Tianyin Xu <ti...@cs.ucsd.edu> ---
Created attachment 29851
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29851&action=edit
use strcasecmp instead of strcmp to make the option case insensitive
--
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