Bug 50527 - misleading error message for unknown HTTP method
Summary: misleading error message for unknown HTTP method
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 6.0.29
Hardware: PC All
: P2 normal (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-29 08:56 UTC by Julian Reschke
Modified: 2011-01-08 20:16 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Reschke 2010-12-29 08:56:38 UTC
For unknown HTTP methods, Tomcat says:

"...is not defined in RFC 2068 and is not supported by the servlet API"

This is misleading.

1) RFC 2068 has been obsoleted by RFC 2616 over 10 years ago. It doesn't matter what it says.

2) As a matter of fact, what RFC 2616 says doesn't matter either. Methods are an extension point, and extension methods work just fine *when implemented*.

So the message (in javax/servlet/http/LocalStrings.properties) should be something like:

"...is not implemented by this servlet for this URI".
Comment 1 Mark Thomas 2011-01-04 18:00:59 UTC
Fair point.

Fixed in 7.0.x and will be included in 7.0.6 onwards.

Proposed for 6.0.x
Comment 2 Konstantin Kolinko 2011-01-08 20:16:41 UTC
Fixed in 6.0 with r1056856 and will be in 6.0.30.