I've just donloaded the CLI 6.7.1 distribution. When attempting to run a CLI command for JIRA, I receive an 401 response code on the licenses validation check.
Response code: 200, message: null, url: https://jira.XXX.com/rest/auth/1/session Response code: 401, message: null, url: https://jira.XXX.com/rest/org.swift.jira.cli/latest/validatelicense Retry request on 401 error. Response code: 401, message: null, url: https://jira.XXX.com/rest/org.swift.jira.cli/latest/validatelicense Remote error: User is not authorized to perform the request. Response code: 401. org.swift.common.cli.CliClient$RemoteNotAuthorizedException: User is not authorized to perform the request. Response code: 401. at org.swift.common.cli.helpers.DefaultRemoteHelper.handleBadResponseCode(DefaultRemoteHelper.java:1031) at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithUrlConnection(DefaultRemoteHelper.java:858) at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithFullUrl(DefaultRemoteHelper.java:668) at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithUrlConnection(DefaultRemoteHelper.java:852) at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithFullUrl(DefaultRemoteHelper.java:668) at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithFullUrl(DefaultRemoteHelper.java:639) at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequest(DefaultRemoteHelper.java:622) at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequest(DefaultRemoteHelper.java:611) at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequest(DefaultRemoteHelper.java:595) at org.swift.common.cli.helpers.AppfireRemoteHelper.getServerInfo(AppfireRemoteHelper.java:117) at org.swift.common.cli.DefaultRemoteClient.validateLicense(DefaultRemoteClient.java:253) at org.swift.jira.cli.JiraClient.validateLicense(JiraClient.java:2466) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:766) at org.swift.common.cli.DefaultRemoteClient.process(DefaultRemoteClient.java:506) at org.swift.common.cli.CliClient.doWork(CliClient.java:572) at org.swift.jira.cli.JiraClient.main(JiraClient.java:172) URL requested: https://jira.XXX.com/rest/auth/1/session
We have a valid license.
We have the connector installed and the license is valid.
We are JIRA 7.3.5 Data Center Server install.
If I go to the URL that validates the license, I get a proper response:
{"status":true,"message":"Bob Swift Atlassian Add-ons - JIRA CLI Connector has a valid license.","product":"JIRA","version":"7.3.5","build":"73016","buildDate":"2017-04-19T00:00:00.000-0400","time":"2017-07-10T13:28:05.731-0400","timeZone":"Eastern Standard Time","title":"XXX JIRA","baseUrl":"https://jira.XXX.com","connectorVersion":"6.7.0"}
It's a bit late, but for those still looking for the answer.
You need to add to the action line:
--options basicAuthentication
Can you post the command you're running? Please obfuscate the password. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.