Please provide the package NVR for which the bug is seen: httpd-2.4.62-7.el9
How reproducible is this bug?: Easy/Always
Steps to reproduce:
- Install httpd:
# dnf install httpd
- Add the following two lines to /etc/httpd/conf/httpd.conf:
TraceEnable off ErrorDocument 405 /i/dont/exist
- Start httpd:
# systemctl start httpd
- Use curl to make a trace request and observe the incorrect message:
$ curl -isX TRACE localhost
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>
Actual results:
HTTP/1.1 405 Method Not Allowed Date: Thu, 27 Nov 2025 14:23:42 GMT Server: Apache/2.4.62 (Red Hat Enterprise Linux) Allow: Content-Length: 348 Content-Type: text/html; charset=iso-8859-1 <!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 this URL.</p> <p>Additionally, a 405 Method Not Allowed error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>
The patch that fixes this issue was provided with the following PR that has been merged to trunk, however it has not been added to a release yet.
This issue is being tracked for JBCS in https://issues.redhat.com/browse/JBCS-385 and is actually blocking it, so could you please evaluate adding it to RHEL httpd?
Thank you,
Sokratis
- blocks
-
JBCS-385 The displayed "requested method GET" error message is not unexpected
-
- New
-
- is cloned by
-
RHEL-131829 Backport patch from https://github.com/apache/httpd/pull/419 to RHEL httpd
-
- Planning
-