-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
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:
- HTTP 405 (Method not supported) returned when 406 Status (Not Acceptable) was expected [SPR-7379] #12037 HTTP 405 (Method not supported) returned when 406 Status (Not Acceptable) was expected
- Add equivalent of JAX-RS @Produces to Spring MVC [SPR-7353] #12012 Add equivalent of JAX-RS
@Produces
to Spring MVC
Referenced from: commits spring-attic/spring-framework-issues@4c4b3ef
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug