Cwa-app-ios: Deadman notification is reset too early

Created on 10 Feb 2021  路  3Comments  路  Source: corona-warn-app/cwa-app-ios

Avoid duplicates

  • [ ] Bug is not mentioned in the FAQ
  • [ ] Bug is not already reported in another issue

Technical details

  • Device name:
  • iOS Version:
  • App Version:

File RiskProvider.swift, line 290 and 322 (on branch release/1.14.x at 1bc728)

Describe the bug

The deadman notification reset is called two times:
a) first from executeExposureDetection, before calling the completion handler (line 290)
b) second from calculateRiskLevel after the completion handler (line 322)

(a) seems too early, because the completion handler might fail.

Note: I have seen this only at a code review. It looks wrong, but I have not verified it with any test.
Of course there might be a misunderstanding on my side.

Steps to reproduce the issue

Expected behaviour

Deadman notification is reset not before the risk calculation is really done and nothing can fail after this.

Possible Fix

Just delete line 289 - 290?

Additional context


Internal tracking ID: EXPOSUREAPP-5100

bug mirrored-to-jira

Most helpful comment

As far as I see, this is meanwhile fixed on branch release/1.13.x 馃榾

All 3 comments

@ndegendogo Thanks. We will forward this to the developers. Best regards, DS


Internal tracking ID: EXPOSUREAPP-5100
Corona-Warn-App Open Source Team

As far as I see, this is meanwhile fixed on branch release/1.13.x 馃榾

@ndegendogo,
Your info has been forwarded to the developers麓s ticket. Thanks!

Was this page helpful?
0 / 5 - 0 ratings