| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0003837 | Spring engine | General | public | 2013-06-09 11:57 | 2013-06-09 19:41 | ||||
| Reporter | rainisic | ||||||||
| Assigned To | abma | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | resolved | Resolution | not fixable | ||||||
| Product Version | 94.1 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0003837: SpringMVC send the wrong request to the controller. | ||||||||
| Description | The servlet config as follow:
<servlet-mapping>
<servlet-name>spring-mvc</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
Controller code as follow:
@RequestMapping("/test")
@ResponseBody
public Object test(HttpServletRequest request) {
return "true";
}
HTTP Request in browser as follow: http://localhost:8080/test.html I think the result should be 404, but in fact, it show me "true". In REST, everything is a resource. I think the resource I request is "/test.html", not "/test". So it should be 404. So I think this is a bug. Thanks. | ||||||||
| Tags | No tags attached. | ||||||||
| Checked infolog.txt for Errors | |||||||||
| Attached Files |
| ||||||||
Notes |
|
|
abma (administrator) 2013-06-09 19:41 |
wrong project? is this about the "spring framework" https://jira.springsource.org/browse/SPR ? this site is about the spring rts engine... |


