jira-client icon indicating copy to clipboard operation
jira-client copied to clipboard

Attachment download fails to authenticate

Open tdelacour opened this issue 5 years ago • 0 comments
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>)}")

tdelacour avatar Aug 11 '20 01:08 tdelacour