Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseUrl truncated when create JsonRpc bean #322

Open
vyatich opened this issue Oct 27, 2023 · 0 comments
Open

BaseUrl truncated when create JsonRpc bean #322

vyatich opened this issue Oct 27, 2023 · 0 comments

Comments

@vyatich
Copy link

vyatich commented Oct 27, 2023

On AutoJsonRpcClientProxyCreator
new URL(baseUrl, path) - here baseUrl is truncated if there is something in the path other than the host, like
host.com/myService transform to just host.com

	private String appendBasePath(String path) {
		try {
			return new URL(baseUrl, path).toString();
		} catch (MalformedURLException e) {
			throw new IllegalArgumentException(format("Cannot combine URLs '%s' and '%s' to valid URL.", baseUrl, path), e);
		}
	}
	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant