-
Notifications
You must be signed in to change notification settings - Fork 95
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
Doesn't work with API served on sub-path #237
Comments
Hey @danh-fissara, we are about to release version 0.15.0 soon and indeed many things are going to change also regarding the client configuration. I don't really understand though what is your question: the API should always be running on a specific URL and those endpoints like |
Hey, thanks for the response. To clarify, we're running the API behind a proxy, so a request to Anyway, even without the proxy, the docs seem to say running at sub-paths is supported via the
|
@danh-fissara hey yeah you are right the problem is the leading If you want to contribute a fix to this we are happy to include it in the 1.0 release 😄 |
@danh-fissara: It would be great if you could try out the patch from #241 so we know if it actually fixes your issue. Thanks in advance! |
Okay, #241 was merged so I expect this issue to be fixed with the next release (or current master). Please let us know if it works for you or if there is any further issues, @danh-fissara. |
Hi,
I noticed that any path as part of the the base URL gets ignored, because the (
/run
,/minions
etc.) paths passed toURI.resolve()
are absolute and so replace whatever was specified inClientConfig.URL
:salt-netapi-client/src/main/java/com/suse/salt/netapi/client/impl/HttpClientConnection.java
Line 166 in fda385a
It looks like trivial fix, but I see the code's moved on a fair bit since
0.14.0
, and am not sure if it's still an issue.The text was updated successfully, but these errors were encountered: