-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
+++ This bug was initially created as a clone of Bug #1366449 +++
Description of problem:
In case ErrorDocument is configured but the value of "document" is invalid,
the response is like below:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>405 Method Not Allowed</title> </head><body> <h1>Method Not Allowed</h1> <p>The requested method GET is not allowed for the URL /.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>
The messages in the page "requested method GET" is not expected and should be "TRACE
since TRACE method is sent.
Version-Release number of selected component (if applicable):
Apache HTTP Server 2.4.23
How reproducible:
send TRACE method with invalid ErrorDocument setting.
Steps to Reproduce:
1.configure "TraceEnable off"
2.configure ErrorDocument with non-existed error page
3.send TRACE method
Actual results:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>405 Method Not Allowed</title> </head><body> <h1>Method Not Allowed</h1> <p>The requested method GET is not allowed for the URL /.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>
Expected results:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>405 Method Not Allowed</title> </head><body> <h1>Method Not Allowed</h1> <p>The requested method TRACE is not allowed for the URL /.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>
- links to