Skip to content

@RequestMapping handled incorrectly when value contains "." (dot) character [SPR-6482] #11148

@spring-projects-issues

Description

@spring-projects-issues

Aleš Najmann opened SPR-6482 and commented

At the moment in my code exist method with such signature:

@RequestMapping(value = "/projects/{filter}/{order}-{direction}", method = RequestMethod.GET)
public String filteredProjectListing(@PathVariable("filter") String filter, @PathVariable("order") String order,
            @PathVariable("direction") String direction, ModelMap model) {
 ...
}

order is String variable containing ognl-like expresssion ie. "raging.result" (which I later use for BeanComparator) but this mapping is in version RC3 is not found, which is different behaviour from RC2 where there is no such problem.

Log message with example of given fault result is:

2009-12-01 16:38:02,459 WARN [org.springframework.web.servlet.PageNotFound] - <No mapping found for HTTP request with URI [/Example/projects/all/rate.result-asc.html] in DispatcherServlet with name 'Example'>

There is no problem with handling path which doesn't contain more '.' (dot) characters, so this can probably help you with analysis of the problem.


Affects: 3.0 RC3

Attachments:

Issue Links:

Referenced from: commits 976f920

1 votes, 3 watchers

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