jira-client
jira-client copied to clipboard
Attachment download fails to authenticate
trafficstars
I am having trouble using the attachment download method. As far as I can tell, it is failing to authenticate the request.
Relevant method: https://github.com/rcarz/jira-client/blob/master/src/main/java/net/rcarz/jiraclient/Attachment.java#L107-L127
When I manually add an auth header, I am able to successfully execute the download. E.g.
httpget.setHeader("Authorization", "Basic ${Base64.getEncoder().encodeToString(<USER:PASS>)}")