Skip to content

Commit

Permalink
Merge pull request #200 from DP-3T/192_194
Browse files Browse the repository at this point in the history
Comments
  • Loading branch information
martinalig authored Aug 28, 2020
2 parents dd58c7f + 7c2fceb commit a730a5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void upsertExposeesDelayed(
+ " transmission_risk_level, vals.received_at)";
}
var parameterList = new ArrayList<MapSqlParameterSource>();
// if delayedReceivedAt is supplied use it
// Calculate the `receivedAt` just at the end of the current releaseBucket.
var receivedAt =
delayedReceivedAt == null
? (now.getTimestamp() / releaseBucketDuration.toMillis() + 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,18 @@ public GaenController(
}

if (key.getRollingPeriod().equals(0)) {
// currently only android seems to send 0 which can never be valid, since a non used key
// should not be submitted
// default value according to EN is 144, so just set it to that. If we ever get 0 from iOS
// we should log it, since
// this should not happen
// Additionally to delaying keys this feature also makes sure the rolling period is always
// set
// to 144 to make sure iOS 13.5.x does not ignore the TEK.
// Currently only Android seems to send 0 which can never be valid, since a non used key
// should not be submitted.
// This allows to check for the Google-TEKs also on iOS. Because the Rolling Proximity
// Identifier is based on the TEK and the unix epoch, this should work. The only downside is
// that iOS
// will not be able to optimize verification of the TEKs, because it will have to consider
// each
// TEK for a whole day.
logger.error("RollingPeriod should NOT be 0, fixing it and using 144");
key.setRollingPeriod(GaenKey.GaenKeyDefaultRollingPeriod);

// If this is a same day TEK we are delaying its release
Expand Down

0 comments on commit a730a5b

Please sign in to comment.