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

Scan errors for non-CWA QR codes pop up on frontend #2909

Closed
koehntopp opened this issue Apr 22, 2021 · 17 comments
Closed

Scan errors for non-CWA QR codes pop up on frontend #2909

koehntopp opened this issue Apr 22, 2021 · 17 comments
Assignees
Labels
bug Something isn't working Fix 2.0.4 Fix is planned for 2.0.4 mirrored-to-jira This item is also tracked internally in JIRA

Comments

@koehntopp
Copy link

koehntopp commented Apr 22, 2021

From

https://twitter.com/sand2drn/status/1385197350025564163

Bildschirmfoto 2021-04-22 um 14 04 01

Exception handling should be improved, meaningful error message shown.


https://github.com/corona-warn-app/cwa-app-android/releases/tag/v2.0.4
Internal Tracking ID: EXPOSUREAPP-6658

@koehntopp koehntopp added the bug Something isn't working label Apr 22, 2021
@cwa-bot cwa-bot bot added this to ToDo in [CM] cwa-app-android Apr 22, 2021
@MikeMcC399
Copy link
Contributor

MikeMcC399 commented Apr 22, 2021

If a user inadvertently tries to scan in a QR code from a PCR test instead of from a check in, then the same error occurs.

Steps to reproduce

  1. Tap Check In
  2. Tap "SCAN QR CODE" and then point to QR code from bottom half of example form 10C form

image

Expected result

In this special case, a dedicated error message should point users to the correct way of scanning in a PCR test QR code.

For other QR codes, which are not in the format for checking in, then a user-friendly error message should be output.

@koehntopp
Copy link
Author

Bildschirmfoto 2021-04-22 um 14 21 34

@dsarkar dsarkar added the mirrored-to-jira This item is also tracked internally in JIRA label Apr 22, 2021
@cwa-bot cwa-bot bot moved this from ToDo to Mirrored to Jira in [CM] cwa-app-android Apr 22, 2021
@sand2dorn
Copy link

sand2dorn commented Apr 22, 2021

I tried it with several QR codes from Google Image Search. Same result.

Oh, you're fast… 😺

@cwa-bot cwa-bot bot moved this from Mirrored to Jira to ToDo in [CM] cwa-app-android Apr 22, 2021
@dsarkar
Copy link
Member

dsarkar commented Apr 22, 2021

@koehntopp @MikeMcC399 Thank you very much for the reports. Internal Tracking ID: EXPOSUREAPP-6658


Corona-Warn-App Open Source Team

@heinezen heinezen moved this from ToDo to Mirrored to Jira in [CM] cwa-app-android Apr 22, 2021
@dsarkar dsarkar added the Fix 2.1 Fix is planned for 2.1 label Apr 22, 2021
@Ein-Tim
Copy link
Contributor

Ein-Tim commented Apr 22, 2021

@MikeMcC399

I suggest that you open a new wishlist item regarding #2909 (comment).

@cwa-bot cwa-bot bot moved this from Mirrored to Jira to ToDo in [CM] cwa-app-android Apr 22, 2021
@MikeMcC399
Copy link
Contributor

@dsarkar
What do you think about the suggestion from @Ein-Tim ?

I suggest that you open a new wishlist item regarding #2909 (comment).

Is wrongly scanning a PCR Test QR code using the Check-in QR code scanner already covered by Internal Tracking ID: EXPOSUREAPP-6658 or does it need a separate wishlist item?

@MikeMcC399
Copy link
Contributor

@Ein-Tim

What happens on iOS if you try to scan in the sample PCR test QC code using check-in?

image

Do you get a user-friendly error message?

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Apr 22, 2021

@MikeMcC399

iOS shows this message, which is quite good I think:

@dsarkar
Copy link
Member

dsarkar commented Apr 22, 2021

@MikeMcC399 @Ein-Tim

Is wrongly scanning a PCR Test QR code using the Check-in QR code scanner already covered by Internal Tracking ID: EXPOSUREAPP-6658 or does it need a separate wishlist item?

That would be a new wishlist item.

The alignment of iOS and Android error messages is dealt with in this ticket.

@dsarkar dsarkar added Fix 2.0.4 Fix is planned for 2.0.4 and removed Fix 2.1 Fix is planned for 2.1 labels Apr 22, 2021
@dsarkar
Copy link
Member

dsarkar commented Apr 23, 2021

FYI PR #2919

@MikeMcC399
Copy link
Contributor

@dsarkar

In https://github.com/corona-warn-app/cwa-app-android/releases/tag/v2.0.4-RC0 which includes PR "Human friendly QR Dialog Message 9002 (EXPOSUREAPP-6658)" #2919

the issue is fixed in the code, however the message is not translated yet. If the locale is set to English (United Kingdom) then the UI is shown in German. The default strings file includes only German, and the specific English strings file is missing the entries.

I assume this is known, however I just wanted to mention it.

<!-- XHED: Trace location check-ins invalid qr code dialog title -->
<string name="trace_location_attendee_invalid_qr_code_dialog_title">QR-Code nicht gültig</string>
<!-- YTXT: Trace location check-ins invalid qr code dialog message -->
<string name="trace_location_attendee_invalid_qr_code_dialog_message">Der gescannte QR-Code ist nicht gültig.\nBitte scannen Sie einen gültigen QR-Code.\n\n(%1$s)</string>
<!-- XBUT: Trace location check-ins invalid qr code dialog positive button -->
<string name="trace_location_attendee_invalid_qr_code_dialog_positive_button">Ok</string>
<!-- XBUT: Trace location check-ins invalid qr code dialog negative button -->
<string name="trace_location_attendee_invalid_qr_code_dialog_negative_button">Abbrechen</string>

@cwa-bot cwa-bot bot moved this from Mirrored to Jira to ToDo in [CM] cwa-app-android Apr 23, 2021
@dsarkar
Copy link
Member

dsarkar commented Apr 23, 2021

@MikeMcC399 Many thanks. Forwarded into internal ticket.

@MikeMcC399
Copy link
Contributor

The missing English language strings have been delivered and incorporated into https://github.com/corona-warn-app/cwa-app-android/releases/tag/v2.0.4-RC1.

Scanning the PCR test example QR code, with the device locale set to English (United Kingdom), results in a human-readable error message in English.

It looks like the fix is now good to go!

@dsarkar
Copy link
Member

dsarkar commented Apr 24, 2021

FYI https://github.com/corona-warn-app/cwa-app-android/releases/tag/v2.0.4

@MikeMcC399
Copy link
Contributor

@dsarkar

Google Play Store has already delivered the bug-fix release v2.0.4 to me and I was able to verify that the fix correctly displays a user-friendly error message when scanning the PCR test QR code.

From my point of view this issue can be closed. Perhaps @koehntopp can confirm when he is able to update and check?

@dsarkar
Copy link
Member

dsarkar commented Apr 24, 2021

@MikeMcC399 Thanks for confirming the fix.

@heinezen
Copy link
Member

Dear community,

This issue has been fixed in CWA 2.0.4. We will close this issue now.


Corona-Warn-App Open Source Team

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Fix 2.0.4 Fix is planned for 2.0.4 mirrored-to-jira This item is also tracked internally in JIRA
Development

No branches or pull requests

7 participants