tfs-jira-synchronizer attachment download problem

IS Software November 20, 2015

We use TFS4JIRA to synchronize our issues and work items. We created a profile and configured the field mappings. All the mappings work fine, except the attachments. After a deep investigation, we found the problem. The application "tfs-jira-synchronizer" running under IIS throws an exception (401 - Unauthorized).

The exact point of the exception is the SaveJiraAttachmentContents method :

webClient.DownloadFile(string.Concat(new string[]

{

   attachment.ContentUrl,

   "?os_username=",

    HttpUtility.UrlEncode(this.SynchronizationService.SyncProfile.JiraUser),

   "?os_password=",

    HttpUtility.UrlEncode(this.SynchronizationService.SyncProfile.JiraPassword),

}),text2);

 

This code does not work because we do not use "Basic Authentication" and the webclient does not use default credentials.

 

So, is there anyone that has an idea to work around this problem?

Thanks in advance.

 

1 answer

0 votes
MarcinG November 20, 2015

Hi,

Indeed the attachment download is being done without basic authentication headers, which is incorrect. I have created a bug for that at https://jira.spartez.com/browse/TFS-995. Please watch this bug. I will try to create a fix as soon a spossible

UPDATE: linked to the bug is a build of the synchronizer that fixes the problem. Please try it

Best Regards
Janusz Gorycki, spartez.com

Suggest an answer

Log in or Sign up to answer