Bug 1366449

Summary: The displayed "requested method GET" error message is not unexpected.
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: Masanobu Hatanaka <mhatanak>
Component: httpdAssignee: Weinan Li <weli>
Status: CLOSED DEFERRED QA Contact: Michal Karm Babacek <mbabacek>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.1.1CC: csutherl, jdoyle, pslavice, rsvoboda
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-09 12:46:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Masanobu Hatanaka 2016-08-12 02:27:07 UTC
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:

Comment 1 Coty Sutherland 2017-08-09 12:46:29 UTC
See JBCS-385