renderRequest appears to execute request twice with different URLs

Description

When executing renderRequest, the action appears to correctly perform the request with the API path appended to the URL and the action appended after that, but then appears to incorrectly perform the request again without the API path:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 --action renderRequest --server https://bobswift.atlassian.net --requestType GET --request serverInfo --user first.last --token **** -v URL requested: https://bobswift.atlassian.net/rest/api/latest/serverInfo Request type: GET Content type: application/json; charset=utf-8 Response code: 200, message: null, url: https://bobswift.atlassian.net/rest/api/latest/serverInfo json: {"defaultLocale":{"locale":"en_US"},"baseUrl":"https:\/\/bobswift.atlassian.net","deploymentType":"Cloud","scmInfo":"38bf748fc3814045191b17bb46b2bc8b3a284025","buildDate":"2019-10-03T23:57:51.000-0600","serverTitle":"Jira for Bob Swift Atlassian Apps","version":"1001.0.0-SNAPSHOT","buildNumber":100111,"versionNumbers":[1001,0,0]} URL requested: https://bobswift.atlassian.net/serverInfo Request type: GET Content type: text/html Response code: 404, message: null, url: https://bobswift.atlassian.net/serverInfo Problem determination - response: 404: null Problem determination - response url: https://bobswift.atlassian.net/serverInfo Problem determination - request url: https://bobswift.atlassian.net/serverInfo Remote error: Resource does not exist. Response code: 404. Use -v to see more details. org.swift.common.cli.CliClient$RemoteResourceNotFoundException: Resource does not exist. Response code: 404. Use -v to see more details. at org.swift.common.cli.requesthelpers.DefaultRequestHelper.handleBadResponseCode(DefaultRequestHelper.java:1305) at org.swift.common.cli.requesthelpers.DefaultRequestHelper.makeRequestWithUrlConnection(DefaultRequestHelper.java:966) at org.swift.common.cli.requesthelpers.DefaultRequestHelper.makeUrlRequest(DefaultRequestHelper.java:727) at org.swift.jira.cli.requesthelpers.PseudoRequestHelper.makeUrlRequest(PseudoRequestHelper.java:47) at org.swift.common.cli.requesthelpers.DefaultRequestHelper.renderRequest(DefaultRequestHelper.java:1572) at org.swift.jira.cli.helpers.SystemHelper.renderRequest(SystemHelper.java:256) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:891) at org.swift.common.cli.DefaultRemoteClient.process(DefaultRemoteClient.java:827) at org.swift.common.cli.CliClient.doWork(CliClient.java:753) at org.swift.common.cli.Base.processWithClient(Base.java:139) at org.swift.common.cli.Base.process(Base.java:97) at org.swift.common.cli.Entry.main(Entry.java:29)

Environment

None

Status

Assignee

Bob Swift [Bob Swift Atlassian Apps]

Reporter

Michael Kuhl

Labels

None

Support Entitlement

None

Priority

Major
Configure