UriComponentsBuilder.toUriString() is broken [SPR-17630] #22161
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
rougou opened SPR-17630 and commented
UriComponentsBuilder.toUriString() (and possibly UriComponentsBuilder.encode()) is broken as of 5.0.8.
The code was changed from
to
without any change to the javadoc.
There are 2 problems with this (other than the javadoc issue)
On top of that, the javadoc for UriComponentsBuilder.encode() basically says it will give the expected result while UriComponents.encode() will not, but not encoding braces and throwing IllegalStateExceptions is obviously not the expected result. It seems the variable expansion mechanism introduced is affecting behavior even when this feature is not used.
Affects: 5.0.8, 5.1.1
Issue Links:
Referenced from: commits b219c6c, 5aa131a, 124e817, dc3f953, c6e5008, 6398480
Backported to: 5.0.12
The text was updated successfully, but these errors were encountered: