2025-07-28 17:39 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003837Spring engineGeneralpublic2013-06-09 19:41
Reporterrainisic 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionnot fixable 
Product Version94.1 
Target VersionFixed in Version 
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
Attached Files

-Relationships
+Relationships

-Notes

~0010850

abma (administrator)

wrong project?

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

this site is about the spring rts engine...
+Notes

-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
+Issue History