Bug 50527

Summary: misleading error message for unknown HTTP method
Product: Tomcat 6 Reporter: Julian Reschke <julian.reschke>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 6.0.29   
Target Milestone: default   
Hardware: PC   
OS: All   

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.