Introduce ability to NOT encode URIs with UriTemplate [SPR-16279] #20826
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Greg Turnquist opened SPR-16279 and commented
Spring HATEOAS leverage's Spring Framework's UriTemplate class. However, in certain scenarios, the user provides a URI Template that is already encoded (e.g.
/foo/b%20ar{?x
}). In this scenario, when creating a Spring Framework UriTemplate, the "%" gets encoded into%25. And because we wrap this some of our own goodness, it actually gets encoded twice when doing an expand (e.g.x=>1
in this case).It would be useful if there was an optional to indicate "do not encode", possibly here?
A flag here, or an overloaded method to side step encoding would make it possible.
Related issue
Reference URL: spring-projects/spring-hateoas#593
The text was updated successfully, but these errors were encountered: