View Issue Details

IDProjectCategoryView StatusLast Update
0003837Spring engineGeneralpublic2013-06-09 19:41
Reporterrainisic Assigned Toabma  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionnot fixable 
Product Version94.1 
Summary0003837: SpringMVC send the wrong request to the controller.
DescriptionThe 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.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

abma

2013-06-09 19:41

administrator   ~0010850

wrong project?

is this about the "spring framework" https://jira.springsource.org/browse/SPR ?

this site is about the spring rts engine...

Issue History

Date Modified Username Field Change
2013-06-09 11:57 rainisic New Issue
2013-06-09 19:41 abma Note Added: 0010850
2013-06-09 19:41 abma Status new => resolved
2013-06-09 19:41 abma Resolution open => not fixable
2013-06-09 19:41 abma Assigned To => abma