Skip to content

HTTP 405 (Method not supported) returned when 404 Status (Not Found) was expected [SPR-7345] #12004

@spring-projects-issues

Description

@spring-projects-issues

Keith Donald opened SPR-7345 and commented

Scenario:

  • Sent a HTTP request for text/html content
  • @RequestMapping only matches text/plain content
  • A 405 status code was returned when I had expected a 404

This can be reproduced by running the demo application here:
https://src.springsource.org/svn/spring-samples/mvc-showcase

Deploy the application can click on the "GET /simple/textonly" link to see the 405 returned. See the org.springframework.samples.mvc.simple.SimpleControllerRevisited for the @Controller implementation.


Affects: 3.0.3

Issue Links:

Referenced from: commits spring-attic/spring-framework-issues@4c4b3ef

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions