You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1996/06/17 20:57:26 UTC

ErrorDocument doesn't work as documented in 1.1b3 (fwd)

Not acked.

did this ever work after 0.6*   ?



Date: Mon, 17 Jun 1996 14:47:16 -0400
Message-Id: <OA...@catapult.va.pubnix.com>
From: David J MacKenzie <dj...@va.pubnix.com>
To: apache-bugs@apache.org
cc: djm@va.pubnix.com
Subject: ErrorDocument doesn't work as documented in 1.1b3
X-Quote: After they make styrofoam, what do they ship it in? -- Stephen Wright

From: David MacKenzie <dj...@va.pubnix.com>
Subject: ErrorDocument with a string constant prints the " and %s literally
Affects: src/http_request.c src/http_protocol.c
ChangeLog: Neither die() nor send_error_response() does the documented
 conversions, just a literal bputs(). 
Comments: 
I put in a .htaccess:
ErrorDocument 404 "Hey, what's going on? %s
Then I GET a bogus URL from that server:

djm@catapult 4 $ httpget -x http://wwwcharlotte/flummox
HTTP/1.0 404 Not found
Date: Mon, 17 Jun 1996 18:33:37 GMT
Server: Apache/1.1b3
Content-type: text/html

"Hey, what's going on? %sdjm@catapult 5 $ 

According to http://www.apache.org/docs/custom-error.html this is
wrong; it shouldn't print the " and should expand the %s to additional
information about the error.  As far as I can tell, the documented
behavior is simply unimplemented.

----- End of forwarded message from David J MacKenzie -----

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.