jira-client
jira-client copied to clipboard
JiraClient URI without path generates 'null' in final URL
When creating new JiraClient with URI like
new JiraClient("http://localhost:1234", credentials)
final url contains null in path:
/null/rest/api/latest/issue/createmeta
But when I add '/' at the end of uri it works:
new JiraClient("http://localhost:1234/", credentials)
then
/rest/api/latest/issue/createmeta
@bkiebdaj Everything was OK on org.apache.httpcomponents:httpclient:4.5.6, but now it is broken on org.apache.httpcomponents:httpclient:4.5.9 due to different implementation of org.apache.http.client.utils.URIBuilder class.
This is fixed in my fork: https://github.com/nexocodecom/jira-client/commit/3a1cc671fcf383e4b250855556237f49343b74cf
It is published to Maven Central, so you can use it if you want.