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): JBossEAP 6.3.3 Apache HTTP Server 2.2.26 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> Additional info:
See JBCS-385