Skip to content

RestTemplate should not encode fragments (#'s) [SPR-6946] #11611

@spring-projects-issues

Description

@spring-projects-issues

Arjen Poutsma opened SPR-6946 and commented

RestTemplate currently (and wrongly) treats #'s as fragment indicators. Instead, we should consider the # as part of the path or (query).

See RFC 1630:

A reference to a particular part of a document may, including the
fragment identifier, look like

http://www.myu.edu/org/admin/people#andy

in which case the string "#andy" is not sent to the server, but is
retained by the client and used when the whole object had been
retrieved.


Referenced from: commits c91ff13

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions