Skip to content

Conversation

@ractive
Copy link
Contributor

@ractive ractive commented May 15, 2015

MvcUriComponentsBuilder::fromMethodCall creates wrong URLs with derived controller classes. The @RequestMapping of the declaring class of the method that is called is used instead of the @RequstMapping of the given controller class.

The same issue exists for the fromMethod(Method method, ...) methods. You'd also need to add the class of the controller to get the correct type level @RequestMapping. I'm not sure how you want to handle such API breaking changes though...

https://jira.spring.io/browse/SPR-13033

MvcUriComponentsBuilder::fromMethodCall creates wrong URLs with derived
controller classes. The @RequestMapping of the declaring class of the
method that is called is used instead of the @RequstMapping of the
given controller class.

https://jira.spring.io/browse/SPR-13033
rstoyanchev added a commit that referenced this pull request May 18, 2015
@rstoyanchev
Copy link
Contributor

This is now merged. I've made sure all method accept a controllerType. The existing fromMethod is deprecated. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants