-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Description
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:
- UriTemplateTest.java (2.80 kB)
Referenced from: commits 60d2fdf