From 623c881928325b5217bc1c0cfbbe045df907fb6c Mon Sep 17 00:00:00 2001 From: Quim Date: Wed, 27 Feb 2019 11:27:44 +0100 Subject: [PATCH] fix jira issue index when comparing created tickets --- vulnwhisp/reporting/jira_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vulnwhisp/reporting/jira_api.py b/vulnwhisp/reporting/jira_api.py index 1bf1720..4ed8e3b 100644 --- a/vulnwhisp/reporting/jira_api.py +++ b/vulnwhisp/reporting/jira_api.py @@ -151,9 +151,9 @@ class JiraAPI(object): #WARNING: function IGNORES DUPLICATES, after finding a "duplicate" will just return it exists #it wont iterate over the rest of tickets looking for other possible duplicates/similar issues self.logger.info("Comparing Vulnerabilities to created tickets") - for index in range(len(self.all_tickets)-1): + for index in range(len(self.all_tickets)): checking_ticketid, checking_title, checking_assets = self.ticket_get_unique_fields(self.all_tickets[index]) - if title == checking_title: + if title.encode('ascii') == checking_title.encode('ascii'): difference = list(set(assets).symmetric_difference(checking_assets)) #to check intersection - set(assets) & set(checking_assets) if difference: