Skip to content

UriTemplateHandler is not called for requests without url variables [SPR-13145] #17736

@spring-projects-issues

Description

@spring-projects-issues

Jiri Mikulasek opened SPR-13145 and commented

In #17627 some baseUrl - prepending mechanism was introduced in DefaultUriTemplateHandler. When verifying that I unfortunately missed the situation when restTemplate called with URL without some variables and it seems in that situation the UriTemplateHandler is not invoked at all, which results to inconsistent behaviour.

Please make it consistent - either move the baseUrl prefixing mechanism somewehere else (which is invoked for every request) or invoke the UriTemplateHandler for each request.

Sorry for not realizing this problem at the beginning.


Affects: 4.2 RC1

Issue Links:

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions