DefaultUriTemplateHandler.insertBaseUrl adds extra / to URL
See original GitHub issueI have built a SDK using Spring-Vault 1.0.0.M2. It works fine until I switched to 1.0.0.RELEASE. Stepping into the code, I have found the URL sent to Vault has extra /
– http://127.0.0.1:8200/v1//sys/auth/cert. Further looking into the code, there is a line (#121) in
DefaultUrlTemplateHandler.insertBaseUrl(UriComponents uriComponents)
String url = getBaseUrl() + uriComponents.toUriString();
I think to be defensive, the code should first check if there is any leading/trailing / before concatenates the string to avoid the extra / in the URL. Currently, the issue basically blocks me from using GA version in the SDK.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
spring - What's the replacement for deprecated ...
In Spring 5, DefaultUriTemplateHandler is deprecated, and the suggested replacement is DefaultUriBuilderFactory .
Read more >I-Index (Spring Framework 4.3.0.RC1 API)
Checks to see that a valid report file URL is supplied in the configuration. ... Adds initialization to a WebDataBinder via @InitBinder methods....
Read more >HTTP client connector adds extra slash(/) before resource path.
I am using HTTP client connector to pass SFDC query. I want to pass the query dynamically hence gave https:// in Connection and...
Read more >Index (spring-web 4.2.3.RELEASE API) - Javadoc Extreme
Extension point that subclasses can use to add extra bind values for a request. ... DefaultUriTemplateHandler() - Constructor for class ...
Read more >Redirected URL has extra forward slash / | WordPress.org
However, I have one URL that when directed has an extra forward… ... The plugin only does what you tell it to do...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please learn how to properly format code and logs.
Yes, you are right. It is
spring-web
dependency. As soon as I added4.3.8.RELEASE
forspring-web
in pom.xml, the url is created correctly. Thanks for the reply.