Cwa-app-android: QR-code invalid (QR-Code ist ungültig)

Created on 6 Nov 2020  ·  23Comments  ·  Source: corona-warn-app/cwa-app-android

Avoid duplicates

  • [x] Bug is not mentioned in the FAQ
  • [x] Bug is specific for Android only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository

    • not sure about this.

  • [x] Bug is not already reported in another issue

Describe the bug


After scanning the QR-Code from an official Corona-Warn-App paper from the doctor the app shows the error: "QR-Code ist ungültig".

IMG-20201106-WA0000

Expected behaviour


The app should accept the QR-Code.

Steps to reproduce the issue

  1. Click on "Wurden Sie getestet?"
  2. Click on "Weiter"
  3. Click on "Dokument mit QR-Code"
  4. Cllick on Einwilligungserklärung "Erlauben"
  5. Accept that the warn app can access the camera "ZULASSEN"
  6. Scan the QR-Code

Technical details

  • Mobile device: Huawei P10 lite
  • Android version: 8

Possible Fix


I don't know if it is an issue of the app, backend or any other part of the process.

Additional context

  • The QR-Code was NOT scanned from another phone.
  • The QR-Code was from an official piece of paper which explicitly meantioned the Corona-Warn-App.
  • The FAQ: https://www.coronawarn.app/de/faq/#qr_test doesn't help:
    In einigen Fällen kann es vorkommen, dass Sie einen QR-Code erhalten haben, der nicht mit dem Testabrufsystem der Corona-Warn-App kompatibel ist bzw. nicht für den Abruf des Tests freigeschaltet wurde. What does "nicht für den Abruf des Tests freigeschaltet" mean? Who has to do this?

Related to: corona-warn-app/cwa-documentation#400.

Internal tracking ID: EXPOSUREAPP-2403
Internal tracking ID: EXPOSUREAPP-3546 extra slash

bug duplicate mirrored-to-jira

Most helpful comment

Thanks for the link. Indeed, the bug is very annoying as it
unnecessarily delays the entire process.

A good offline-tool to quick-fix the localhost// problem for yourself is
to use https://wiki.ubuntuusers.de/QtQR/.
In version 1.7.1 of the app, upper/lower case is not an issue anymore,
but the two // after localhost are still a problem. Example, if you have
https://localhost//?AD1ED0-... a tiny modification to
https://localhost/?AD1ED0-... will do the trick.

I have updated the solution description.

A

On 29.11.20 11:21, Mike McCready wrote:
>

@ascherp https://github.com/ascherp

Here are the prefixes:

https://localhost//?AD1ED0-...

There was mention in #1514 (comment)
https://github.com/corona-warn-app/cwa-app-android/pull/1514#issuecomment-721084587
of invalid QR codes which contained two backslash characters after the
local host i.e. https://localhost//? instead of https://localhost/?
like the ones you have posted.

The #1514 (comment)
https://github.com/corona-warn-app/cwa-app-android/pull/1514#issuecomment-721084587
refers to the solution in #1524
https://github.com/corona-warn-app/cwa-app-android/pull/1524. I
don't know whether the comment means that // is supposed to be
accepted or not. Unfortunately I'm unfamiliar with regex. Perhaps
@harambasicluka https://github.com/harambasicluka could clarify?

There is a wishlist item corona-warn-app/cwa-wishlist#227
https://github.com/corona-warn-app/cwa-wishlist/issues/227
concerning manual entry of a QR code using the alphanumeric string
printed under the QR code, but that is still in status of being wished
for.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/corona-warn-app/cwa-app-android/issues/1551#issuecomment-735371190,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD2BQS6AWWEOD5OJ6HZPJ23SSIOCVANCNFSM4TMR4V6A.

All 23 comments

Hi @DannySchumann

There is a hot topic open on this issue under https://github.com/corona-warn-app/cwa-documentation/issues/400.

"nicht für den Abruf des Tests freigeschaltet" refers to processing of the checkbox on the form shown in https://github.com/corona-warn-app/cwa-documentation/issues/400#issuecomment-669937832 "Das Einverständnis des Versicherten zum Übermitteln des Testergebnisses für Zwecke der Corona-Warn-App auf den vom RKI betriebenen Server wurde erteilt. Dem Versicherten wurden Hinweise zum Datenschutz ausgehändigt."

Did you get tested at a doctor's practice or by the health authority (Gesundheitsamt)?
The form is slightly different for the Gesundheitsamt, where it replaces "Versicherten" with "Getesteten" in the above text. It also uses the different term at the top of the form with the QR code you should have received, where it says Name, Vorname des ...... (I'm just going by the information on https://www.kbv.de/html/1150_46778.php by the way.)

Good luck for the result of your test anyway!

Dear Mike, i am reporting on behalf of someone else.
The test was done at the doctor's practice.
Do one need to wait until the test was received by the laboratory before the code can be scanned? This is not mentioned anywhere, so i expect one is able to scan the code regardless of what checkbox is filled on a piece of paper which cannot be known by the system at scan-time.
The upper part of the form was filled by the docter.
Has the doctor to register the code in the system before handing it out?

Hi
there is no wait for the laboratory you can scan the test immediately. You can also scan the code regardless of the checkbox.
This error appears when the QR Form was copied and not newly generated or it is not a valid QR Code for the CWA because of a mistake of the creator.
Can you provide me a photo of the QR code via email?

I sent the QR-Code to @thomasaugsten and now waiting for feedback.

@DannySchumann

I sent the QR-Code to @thomasaugsten and now waiting for feedback.

Thanks for keeping us updated! It will be interesting to hear what was causing the problem scanning the QR code.

I re-read the full FAQ article Probleme mit dem QR-Code that you referred to and I realized that the text part that you quoted wasn't describing your problem, but instead was related to a problem after a QR code has been successfully scanned. So I made a suggestion in https://github.com/corona-warn-app/cwa-website/issues/549 about making the FAQ article easier to understand.

The feedback from @thomasaugsten was that:

  • The CR-Code was wrong generated
  • It is known that wrong generated QR-Codes are out there
  • App version 1.6 should accept these wrong generated QR-Codes (so this is also an App issue)

I think it is not acceptable that affected practices are not informed about that issue and that they handing out wrong QR-Codes every day. It should be also mentioned in the FAQs that there is the possibility of wrong generated codes at all.

Anyhow i appreciate the quick feedback of @thomasaugsten.

The feedback from @thomasaugsten was that:

* The CR-Code was wrong generated

* It is known that wrong generated QR-Codes are out there

* App version 1.6 should accept these wrong generated QR-Codes (so this is also an App issue)

I think it is not acceptable that affected practices are not informed about that issue and that they handing out wrong QR-Codes every day. It should be also mentioned in the FAQs that there is the possibility of wrong generated codes at all.

Anyhow i appreciate the quick feedback of @thomasaugsten.

Version 1.6.1 on Samsung S 10+ with latest Android still has this issue. There is also no new version 1.7 in the Google Store (I saw somewhere on the CWA-Github that there is a new version).

The GP says that some codes only become "visible" after they have been processed by the labs. They also say that they have quite a lot of calls where people report the same issue.

Can you confirm that version 1.6.1 still has not resolved the issue, and/or post a work-around until the issue resolved?

A

This issue can have multiple reasons. Wrongly generated QR Codes, photocopied QR Codes our try to scan this more than once.

All QR codes are valid you will receive a result when the qr code have been processed by a test lab.

Hi Thomas

I can confirm that it can only be a wrongly generated qr code. The cases
"photocopy" and "multiple scans" can be excluded - both don't apply here.

In some other post, I saw the issue is capitalization of letters. Is
this still an issue?

Here are the prefixes:

https://localhost//?AD1ED0-...
https://localhost//?AD1ED0-BEBEEB0B-17C2-48E3-B0B1-6D323704DA63
https://localhost//?C11462-...
https://localhost//?C11462-09897507-3FCD-4894-A6E7-5185DBF14BF7

/Is there a workaround, like manually lowercasing the URL and feeding it
back to CWA?//
/

A

On 27.11.20 18:49, Thomas Augsten wrote:
>

This issue can have multiple reasons. Wrongly generated QR Codes,
photocopied QR Codes our try to scan this more than once.

All QR codes are valid you will receive a result when the qr code have
been processed by a test lab.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/corona-warn-app/cwa-app-android/issues/1551#issuecomment-734936536,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD2BQSYBOEEF55TZOGS3ZFLSR7RC7ANCNFSM4TMR4V6A.

@ascherp

Here are the prefixes:

https://localhost//?AD1ED0-...

There was mention in https://github.com/corona-warn-app/cwa-app-android/pull/1514#issuecomment-721084587 of invalid QR codes which contained two backslash characters after the local host i.e. https://localhost//? instead of https://localhost/? like the ones you have posted.

The https://github.com/corona-warn-app/cwa-app-android/pull/1514#issuecomment-721084587 refers to the solution in https://github.com/corona-warn-app/cwa-app-android/pull/1524. I don't know whether the comment means that // is supposed to be accepted or not. Unfortunately I'm unfamiliar with regex. Perhaps @harambasicluka could clarify?

There is a wishlist item https://github.com/corona-warn-app/cwa-wishlist/issues/227 concerning manual entry of a QR code using the alphanumeric string printed under the QR code, but that is still in status of being wished for.

Thanks for the link. Indeed, the bug is very annoying as it
unnecessarily delays the entire process.

A good offline-tool to quick-fix the localhost// problem for yourself is
to use https://wiki.ubuntuusers.de/QtQR/.
In version 1.7.1 of the app, upper/lower case is not an issue anymore,
but the two // after localhost are still a problem. Example, if you have
https://localhost//?AD1ED0-... a tiny modification to
https://localhost/?AD1ED0-... will do the trick.

I have updated the solution description.

A

On 29.11.20 11:21, Mike McCready wrote:
>

@ascherp https://github.com/ascherp

Here are the prefixes:

https://localhost//?AD1ED0-...

There was mention in #1514 (comment)
https://github.com/corona-warn-app/cwa-app-android/pull/1514#issuecomment-721084587
of invalid QR codes which contained two backslash characters after the
local host i.e. https://localhost//? instead of https://localhost/?
like the ones you have posted.

The #1514 (comment)
https://github.com/corona-warn-app/cwa-app-android/pull/1514#issuecomment-721084587
refers to the solution in #1524
https://github.com/corona-warn-app/cwa-app-android/pull/1524. I
don't know whether the comment means that // is supposed to be
accepted or not. Unfortunately I'm unfamiliar with regex. Perhaps
@harambasicluka https://github.com/harambasicluka could clarify?

There is a wishlist item corona-warn-app/cwa-wishlist#227
https://github.com/corona-warn-app/cwa-wishlist/issues/227
concerning manual entry of a QR code using the alphanumeric string
printed under the QR code, but that is still in status of being wished
for.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/corona-warn-app/cwa-app-android/issues/1551#issuecomment-735371190,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD2BQS6AWWEOD5OJ6HZPJ23SSIOCVANCNFSM4TMR4V6A.

Dear @ascherp, @MikeMcC399,

Thanks for the detailed analysis. We will bring up the 'QR code: extra slash' issue (EXPOSUREAPP-3546) to the developers together with the suggestion https://github.com/corona-warn-app/cwa-wishlist/issues/227.

Best wishes,
DS


Corona-Warn-App Open Source Team

There was mention in #1514 (comment) of invalid QR codes which contained two backslash characters after the local host i.e. https://localhost//? instead of https://localhost/? like the ones you have posted.

I can confirm the bug, I had exactly the same issue as described in the bug by @DannySchumann

The error was caused by a malformed URI in the QR-code containing two slashes (not back slashes) instead of one, e.g https://localhost//?AD1ED0..., after the localhost part.

Reading the QR-Code with my camera app, copying the URI, fixing the double slash issue and generating a new QR-code with a valid URI with a single slash allowed me to scan the code within the CWA without issues and I got my result immediately.

@misterjupiter Can you please provide the name of the test lab via email

@misterjupiter Can you please provide the name of the test lab via email

Not yet, I was tested at a local doctors office. But since I'm gonna call them in the morning, just to verify that I got the correct result in the CWA, I'll ask about the lab and get back to you.

@thomasaugsten:

You got mail.

I have had an issue similar to this, but the code was already scanned (I scanned it) but after a phone update the code disappeared from the app and I wanted to rescan it, but that wasn't possible. Maybe remove this restriction that tests can only be scanned once?

@ShoofLLC

... the code was already scanned (I scanned it) but after a phone update the code disappeared from the app and I wanted to rescan it, but that wasn't possible. Maybe remove this restriction that tests can only be scanned once?

It's a problematic restriction that you can only scan your own code once. According to https://www.coronawarn.app/en/faq/#qr_test the reason is privacy:

"If you have already scanned the QR Code, it unfortunately cannot be scanned a second time, nor is it possible to delete a previously entered QR Code and scan it in again. We have to make sure that only one phone can scan the QR Code and transmit its diagnostic keys. For privacy reasons, we cannot store the phone's ID, so the QR Code is only valid for one scan."

@ShoofLLC

... the code was already scanned (I scanned it) but after a phone update the code disappeared from the app and I wanted to rescan it, but that wasn't possible. Maybe remove this restriction that tests can only be scanned once?

It's a problematic restriction that you can only scan your own code once. According to https://www.coronawarn.app/en/faq/#qr_test the reason is privacy:

"If you have already scanned the QR Code, it unfortunately cannot be scanned a second time, nor is it possible to delete a previously entered QR Code and scan it in again. We have to make sure that only one phone can scan the QR Code and transmit its diagnostic keys. For privacy reasons, we cannot store the phone's ID, so the QR Code is only valid for one scan."

Maybe the app can assign the google ad-id to a test (the ad-id can be changed if the user wants to) .

Hi @ShoofLLC,

Thanks for contributing here.

It is now possible to scan the QR code twice.

  • It is NOT possible to scan the QR code more the once.
  • The TeleTan can only be used to enter a positive test result
  • I.e. in principle, that once you have used the QR code, but it has disappeared from the CWA (due to a phone update apparently), there is no way to obtain a test result via the CWA

In the meantime, this can a workaround: https://www.coronawarn.app/en/faq/#QRcodes, i.e. try to obtain a new QR code from the verification hotline. However, we will raise this issue internally and figure out if it makes sense to adapt procedures.

Best wishes,
DS


Corona-Warn-App Open Source Team

@dsarkar

  • It is now possible to scan the QR code twice

Does that mean any number of times or only once or twice?

In the meantime, this can a workaround: https://www.coronawarn.app/en/faq/#QRcodes, i.e. try to obtain a new QR code from the verification hotline. However, we will raise this issue internally and figure out if it makes sense to adapt procedures.

A QR code has to be associated with a Corona test for it to have a meaning. I don't understand how the verification hotline could issue a replacement QR code: only the lab handling the Corona test could do that. Could you please clarify how this would work?

Typo: now ==> not in previous comment https://github.com/corona-warn-app/cwa-app-android/issues/1551#issuecomment-745266898

We will come back to you on this issue.

@dsarkar

Typo: now ==> not in previous comment

Thank you for the correction, as this completely changed the meaning of the sentence to almost the opposite!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zeus24 picture zeus24  ·  3Comments

egandro picture egandro  ·  3Comments

tegutistgut picture tegutistgut  ·  3Comments

Diapolo picture Diapolo  ·  3Comments

sdschulze picture sdschulze  ·  3Comments