-
Notifications
You must be signed in to change notification settings - Fork 496
Trace Location URL and ID (EXPOSUREAPP-6137, EXPOSUREAPP-6182) #2737
Conversation
...rn-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/qrcode/TraceLocation.kt
Show resolved
Hide resolved
...n/java/de/rki/coronawarnapp/ui/eventregistration/attendee/confirm/ConfirmCheckInViewModel.kt
Outdated
Show resolved
Hide resolved
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/ProtoBuff.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, nice tests, thumbs up :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, nice tests, few comments/questions, no blockers.
...-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/qrcode/QRCodeUriParser.kt
Outdated
Show resolved
Hide resolved
...-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/qrcode/QRCodeUriParser.kt
Outdated
Show resolved
Hide resolved
@@ -95,7 +91,8 @@ class PresenceTracingConfigMapper @Inject constructor() : PresenceTracingConfig. | |||
revokedTraceLocationVersions = revokedTraceLocationVersionsList.orEmpty(), | |||
riskCalculationParameters = riskCalculationParameters, | |||
submissionParameters = submissionParameters, | |||
plausibleDeniabilityParameters = plausibleDeniabilityParameters | |||
plausibleDeniabilityParameters = plausibleDeniabilityParameters, | |||
qrCodeDescriptors = qrCodeDescriptorsOrBuilderList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we evaluate here whether the qrCodeDescribtor is actually valid regex?, and if it is not valid regex, throw an exception to fallback to a different config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not see any specs for that. Can you align with Max first? The regex in this case is dynamic I don't know how do you want to check if valid or not ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just compile it, if it is not valid regex, it would throw an exception? /cc @mlenkeit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge it as is and do a follow up if necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
Kudos, SonarCloud Quality Gate passed! |
New
Change
qrCodeDescriptors
from configs and support Base64 and Base32 encoding validationTesting
Last Organiser Location
Last Attendee Location
(ChecKIn) with the same data above , since Location is the same of organiser and attendee , the data should be exactly the same except theid
which is Table specific. Data should varies in case you scanned another location which will come next by QR Code Poster (EXPOSUREAPP-5962) #2727 .Please note that url validation supports both Base32 and Base64 ,but the not the creation which supports only Base64