reta opened a new pull request, #3596:
URL: https://github.com/apache/cxf/pull/3596
CXF-7986: WebClient.path method overwrites base URL when given absolute URL
as input. The `UriBuilder` is pretty clearly states that path represents a
relative URI:
```java
/**
* Create a new instance representing a relative URI initialized from a
URI path.
*
* @param path a URI path that will be used to initialize the
UriBuilder, may contain URI template parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if path is {@code null}.
*/
public static UriBuilder fromPath(final String path) throws
IllegalArgumentException {
return newInstance().path(path);
}
```
However, `UriBuilderImpl` does override the whole URI when path is supplied
with absolute URI.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]