You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the odd goofy search string with the # sign and Java newline. This results in an exception rather a proper link.
The link that one might expect to be generated is:
http://localhost/books?title=Spring#\n
Which when properly encoded would be:
http://localhost/books?title=Spring%23%0A
While those example characters may seem strange, a valid URL is possible when encoded properly, but the link builder is instead throwing.
The text was updated successfully, but these errors were encountered:
SingleShot
changed the title
ControllerLinkBuilder Does Not Handle Special Query Params Characters Correctly
ControllerLinkBuilder Does Not Handle Special Query Param Characters Correctly
Oct 7, 2015
kevinconaway
pushed a commit
to kevinconaway/spring-hateoas
that referenced
this issue
Jan 7, 2016
…ory.
ControllerLinkBuilderFactory now forwards the source UriComponents to the ControllerLinkBuilder instead of turning it into a URI and a UriComponentsBuilder in turn.
Original pull request: #422.
odrotbohm
changed the title
ControllerLinkBuilder Does Not Handle Special Query Param Characters Correctly
ControllerLinkBuilder does not handle special query parameter characters correctly
Jan 12, 2016
We are experiencing issues using
ControllerLinkBuilder
with certain characters in query params, and must do some nasty hacks to get around it.Consider this use of
ControllerLinkBuilder
:Note the odd goofy search string with the
#
sign and Java newline. This results in an exception rather a proper link.The link that one might expect to be generated is:
Which when properly encoded would be:
While those example characters may seem strange, a valid URL is possible when encoded properly, but the link builder is instead throwing.
The text was updated successfully, but these errors were encountered: