From 5dcdcf4e42327f0b8f8def18b94914ff5e9d4a18 Mon Sep 17 00:00:00 2001 From: Sidhartha Premkumar Date: Nov 25 2019 17:28:35 +0000 Subject: Encode all content from upstream descriptions --- diff --git a/sync2jira/downstream.py b/sync2jira/downstream.py index 796e831..6f64a67 100644 --- a/sync2jira/downstream.py +++ b/sync2jira/downstream.py @@ -1085,7 +1085,7 @@ def _update_description(existing, issue): ) # Now we can update the JIRA issue if we need to - if new_description != existing.fields.description: + if new_description.replace(' ', '') != existing.fields.description.replace(' ', ''): # This logging is temporary and will be used to debug an # issue regarding phantom updates # Get the diff between new_description and existing diff --git a/sync2jira/intermediary.py b/sync2jira/intermediary.py index 5da6854..334839a 100644 --- a/sync2jira/intermediary.py +++ b/sync2jira/intermediary.py @@ -32,7 +32,7 @@ class Issue(object): self.tags = tags self.fixVersion = fixVersion self.priority = priority - self.content = content + self.content = content.encode('ascii', errors='replace').decode('ascii') self.reporter = reporter self.assignee = assignee self.status = status