Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Extract data from QR codes (EXPOSUREAPP-6031) #2843

Merged
merged 19 commits into from Apr 19, 2021

Conversation

chiljamgossow
Copy link
Contributor

@chiljamgossow chiljamgossow commented Apr 15, 2021

Extracts data from valid pcr and rapid antigen qr codes and returns the corresponding object

Includes changes to RAT qr code format https://github.com/corona-warn-app/cwa-app-tech-spec/pull/37/commits/1ba31322e0df8925d132b26d57c599d054b9a561 including double hashing for registration

How to test:
Scan a QR code with the new format https://github.com/corona-warn-app/cwa-app-tech-spec/pull/37/commits/27944cd986a2bb379d3ebe10bf348dd69c03a1c5

@chiljamgossow chiljamgossow added the maintainers Tag pull requests created by maintainers label Apr 15, 2021
@chiljamgossow chiljamgossow requested a review from a team April 15, 2021 16:43
@chiljamgossow chiljamgossow marked this pull request as draft April 15, 2021 16:44
@chiljamgossow chiljamgossow marked this pull request as ready for review April 16, 2021 06:23
@chiljamgossow chiljamgossow added this to the 2.1.0 milestone Apr 16, 2021
@LukasLechnerDev LukasLechnerDev self-assigned this Apr 16, 2021
@vaubaehn
Copy link
Contributor

Hi @chiljamgossow and @LukasLechnerDev
just for a fast yes/no, no discussion intended here:
According to the current specs, are the personal data stored in clear text inside the QR codes?

@chiljamgossow
Copy link
Contributor Author

Hi @chiljamgossow and @LukasLechnerDev
just for a fast yes/no, no discussion intended here:
According to the current specs, are the personal data stored in clear text inside the QR codes?

No, they are encoded with base64/base64url.

@chiljamgossow
Copy link
Contributor Author

Have to add the tech spec changes affecting guids

@d4rken d4rken self-assigned this Apr 16, 2021
@d4rken d4rken self-requested a review April 16, 2021 11:24
# Conflicts:
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/coronatest/qrcode/CoronaTestQRCode.kt
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/qrcode/scan/SubmissionQRCodeScanViewModel.kt
#	Corona-Warn-App/src/test/java/de/rki/coronawarnapp/ui/submission/qrcode/scan/SubmissionQRCodeScanViewModelTest.kt
@harambasicluka harambasicluka added the prio PRs to review first. label Apr 19, 2021
Copy link
Contributor

@LukasLechnerDev LukasLechnerDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Apr 19, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

80.8% 80.8% Coverage
0.0% 0.0% Duplication

@d4rken d4rken merged commit c1f334e into release/2.1.x Apr 19, 2021
@d4rken d4rken deleted the feature/6031-extract-data branch April 19, 2021 12:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintainers Tag pull requests created by maintainers prio PRs to review first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants