Skip to content

UriTemplate: Insufficient handling of characters that need to be escaped. [SPR-6188] #10856

@spring-projects-issues

Description

@spring-projects-issues

Sam Zurcher opened SPR-6188 and commented

The class UriTemplate (using the method expand(..)) has, according to my understanding, problems with URL parameters that contain e.g. German umlauts, or more general, characters that need to be escaped. E.g. the URL http://www.google.com/?q=zürich is not translated at all - which is ok because you could argue that it is the responsibility of the API user to escape the query parameter ('zürich') properly. BUT the URL http://www.google.com/?q=z%C3%BCrich is transformed into http://www.google.com/?q=z%25C3%25BCrich (= the percentage sign is encoded).

Attached you can find a unit test that describes the behavior in detail. Some of the tests fail describing my expectation.


Affects: 3.0 RC1

Attachments:

Referenced from: commits 60d2fdf

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