Bug 1366449 - The displayed "requested method GET" error message is not unexpected.
Summary: The displayed "requested method GET" error message is not unexpected.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: httpd
Version: 2.1.1
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Weinan Li
QA Contact: Michal Karm Babacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-12 02:27 UTC by Masanobu Hatanaka
Modified: 2019-11-14 08:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-08-09 12:46:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.