From 4dcc34dec13d804652ee687fafa8608b2426a153 Mon Sep 17 00:00:00 2001 From: Klaus Fischer <klaus.fischer@eloware.com> Date: Wed, 12 Oct 2022 10:18:02 +0200 Subject: [PATCH] WIP: Test attachments --- FitConnect/Subscriber.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FitConnect/Subscriber.cs b/FitConnect/Subscriber.cs index c87f3a49..aa80bc95 100644 --- a/FitConnect/Subscriber.cs +++ b/FitConnect/Subscriber.cs @@ -125,6 +125,7 @@ public class Subscriber : FitConnectClient, private SecurityEventToken CheckSubmitEvent(Submission submission) { var status = GetStatusForSubmission(submission); + // TODO: Two different problems more than 1 and no tag if (status.Count(set => set.EventType == EventType.Submit) != 1) { RejectSubmission(submission, Problems.SchemaViolation); throw new Exception("More than one or none submit event found"); @@ -158,7 +159,6 @@ public class Subscriber : FitConnectClient, } foreach (var attachment in submission.Attachments) { - // BUG: Attachment.ID is wrong set if (attachmentSignatures?[attachment.Id] != attachment.AttachmentAuthentication) { RejectSubmission(submission, Problems.IncorrectAuthenticationTag); throw new AggregateException("Attachment signature mismatch"); -- GitLab