From 3c3fd0804a203b5c9e6acb5e249d37fe6926ae03 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 7 Aug 2017 22:08:28 +0200 Subject: [PATCH] BUG-2246: Fix for changes in the cloud login, this is more or less a hack until the Dapplo.Jira project can be updated. --- Greenshot/releases/additional_files/readme.txt.template | 1 + GreenshotJiraPlugin/JiraConnector.cs | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Greenshot/releases/additional_files/readme.txt.template b/Greenshot/releases/additional_files/readme.txt.template index 14d9343da..7383c1df7 100644 --- a/Greenshot/releases/additional_files/readme.txt.template +++ b/Greenshot/releases/additional_files/readme.txt.template @@ -17,6 +17,7 @@ Bugs fixed: * [BUG-2213] - NullReferenceException in the Freehand tool * [BUG-2203] - ArgumentNullException in the Freehand tool * [BUG-2141] - Imgur authentication issues due to old embedded IE +* [BUG-2246] - Login issues with the Atlassian Jira Cloud Features: * [FEATURE-1064] - Added CTRL+Backspace & CTRL+A to the text tool diff --git a/GreenshotJiraPlugin/JiraConnector.cs b/GreenshotJiraPlugin/JiraConnector.cs index 6d9c933f3..c786f4b46 100644 --- a/GreenshotJiraPlugin/JiraConnector.cs +++ b/GreenshotJiraPlugin/JiraConnector.cs @@ -107,10 +107,9 @@ namespace GreenshotJiraPlugin { _jiraClient.Behaviour.SetConfig(new SvgConfiguration { Width = CoreConfig.IconSize.Width, Height = CoreConfig.IconSize.Height }); _issueTypeBitmapCache = new IssueTypeBitmapCache(_jiraClient); - LoginInfo loginInfo; try { - loginInfo = await _jiraClient.Session.StartAsync(user, password, cancellationToken); + await _jiraClient.Session.StartAsync(user, password, cancellationToken); Monitor = new JiraMonitor(); await Monitor.AddJiraInstanceAsync(_jiraClient, cancellationToken); @@ -129,7 +128,7 @@ namespace GreenshotJiraPlugin { { return false; } - return loginInfo != null; + return true; } ///