Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FIT-Connect-SDK - .NET
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect-SDK - .NET
Commits
4dcc34de
Commit
4dcc34de
authored
2 years ago
by
Klaus Fischer
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Test attachments
parent
e5342d52
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!24
AutoReject planning#594
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FitConnect/Subscriber.cs
+1
-1
1 addition, 1 deletion
FitConnect/Subscriber.cs
with
1 addition
and
1 deletion
FitConnect/Subscriber.cs
+
1
−
1
View file @
4dcc34de
...
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment