From 74eacd2ef8b0a98cfa6ba9822f888d7a60db69d4 Mon Sep 17 00:00:00 2001 From: Danny Date: Thu, 23 Feb 2023 12:45:36 -0500 Subject: [PATCH] GC: Event: Add additional sanitization for restore (#2611) ## Description Sanitization steps added for event transformation for restore. ## Does this PR need a docs update or release note? - [x] :no_entry: No ## Type of change - [x] :bug: Bugfix ## Issue(s) * closes #2490 ## Test Plan - [x] :muscle: Manual --- src/internal/connector/support/m365Transform.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/internal/connector/support/m365Transform.go b/src/internal/connector/support/m365Transform.go index bcbdac898..e6792557f 100644 --- a/src/internal/connector/support/m365Transform.go +++ b/src/internal/connector/support/m365Transform.go @@ -78,6 +78,12 @@ func ToEventSimplified(orig models.Eventable) models.Eventable { newBody.SetOdataType(origBody.GetOdataType()) newBody.SetContent(&newContent) orig.SetBody(newBody) + // Sanitation steps for Events + // See: https://github.com/alcionai/corso/issues/2490 + orig.SetTransactionId(nil) + orig.SetWebLink(nil) + orig.SetICalUId(nil) + orig.SetId(nil) return orig }