Open rpalcolea opened 5 years ago
It would help if you posted a full stack trace.
When Spring HATEOAS attempts to navigate over a URI, it does expand any variables and then turns it into a URL
, which if you don't specify the whole thing, can fail.
We might need some defensive handling of path-only URIs.
RestTemplate
needs a full URI to operate properly.
If we detect a relative path it makes sense to try and merge with the base URI.
Is there any update on the issue or maybe a workaround to handle relative paths?
Hi,
I'm trying to do a
follow
withTraveson
for a json like this one:The code looks like:
However, this results in
java.lang.IllegalArgumentException: URI is not absolute
.Is there a way to get
Traverson
working with the original base URI? I can't find a method on the API to accomplish this