-
Notifications
You must be signed in to change notification settings - Fork 496
Latest issued Vaccination DCC 2/2 does not have highest priority #3838
Comments
Expiry date will be displayed in CWA 2.7. |
I am also seeing CWA 2.6.1 selecting an older 2/2 certificate. They are both from PDFs and the older one has the QR code on the left of the text, the newer one has the QR code on the right of the text. They were both issued in July and they both pass the Netherlands test, so the impact of selecting the older certificate is not significant for me. Nevertheless it would be good to find out why the older one is being preferred. |
I did some more tests and both CWA and CovPass used the first scanned certificate as the default. If I scan the older one first, then that is default. If I scan the newer one first, then that becomes default.
It seems that since the certificates have the same vaccination date, then the first one encountered in the list is preferred, with no other comparison taking place. Perhaps there should be an FAQ article advising users to remove older certificates which have been reissued for correctional purposes? (See corona-warn-app/cwa-website#1555 for notes on terminology.) |
Yes, this seems to be the case according to comments in code: Lines 66 to 85 in fc7c1bd
This is a good idea. Ideally, the sorting algorithm could be enhanced in a future release. I guess there are already many people out there who have a re-issued 2/2 VaccDCC. |
@vaubaehn |
@MikeMcC399 |
@vaubaehn Edit: The CovPass team has acknowledged the issue in Digitaler-Impfnachweis/covpass-android#57 (comment). Now waiting for bug acknowledgement from the CWA Open Source Team and assignment of an internal ID. |
If you connect via Android Studio, then Logcat will show the full parsing of the certificate data under The schema version is defined in https://github.com/ehn-dcc-development/ehn-dcc-schema. |
[OT] |
@MikeMcC399 @vaubaehn Thanks. Internal Tracking ID: EXPOSUREAPP-8756 Corona-Warn-App Open Source Team |
The sorting order of the scanned vaccination certificates is unfortunate even if there are multiple complete vaccination certificates: See: corona-warn-app/cwa-documentation#679 (comment). "Last scanned = highest priority" would be an idea. |
Workaround for sorting EU-Certificates (CWA 2.6.1 and CovPass 1.28.7): corona-warn-app/cwa-documentation#679 (comment). |
@Jo-Achim |
@MikeMcC399 But the initial issue here, for example, was "Latest issued Vaccination DCC 2/2 does not have highest priority" - the disadvantages have already been mentioned - against the background that, for whatever reasons, users scanned several EU certificates for the same person and vaccination. A "for whatever reason" shouldn't be, but it could be that with a further development of the certificates not every country always keeps pace, the downward compatibility might not be given, ... - and therefore an older certificate could be helpful. In this sense, I also understood your post https://github.com/Digitaler-Impfweise/covpass-android/issues/57#issue-956015931 under "Possible Fix":
|
@Jo-Achim I don't think that would be a workaround though, because only one of the certificates for a given person is chosen as "Currently used certificate" at any time. The business rule check only runs against that one certificate. Your apparent desire to check against different schema versions stored for the same person / vaccination would need to be a separate enhancement request. |
Well, just in case, there is still the option of selecting the certificate to be used.
|
Thanks for pointing that out. I hadn't noticed that ability! |
Link back to related issue #4000. |
With PR #4123 merged into release/2.11.x this should be fixed in the next release. 👍🏻 |
@vaubaehn can you confirm the fix? Can we close this one? |
@vaubaehn I can however scan these two different 1.3.0 2/2 certificates in CWA Android 2.11.2 in the order older then newer certificate, and the newer certificate is selected as "Currently used certificate". So I do believe that this issue is resolved. |
Hi @MikeMcC399 and @marcauberer , Thanks to everyone involved! 🍻 |
Avoid duplicates
Technical details
Describe the bug
Most users will only import 1 or 2 vaccination certificates into CWA, with either dose 2/2, or dose 1/2 together with dose 2/2.
But there are some use cases, when users are importing additionally a re-issued VaccDCC (2/2) as a 3rd certificate at a later point in time. Either just because they can do it 🤷♂️ , or they need to: when the Netherlands decided to apply business rules schema v1.3.0 to their validation checks, but German VaccDCCs were issued compliant to schema v1.0.0 before July 1st, and users want to be on safe side in border control and get their 2nd VacDCC re-issued (online, pharmacy). See corona-warn-app/cwa-documentation#671 .
The 3rd VaccDCC (2/2) with a newer date of issue and later date of expiry can be imported into CWA without problems, but at least in my case, the 3rd VaccDCC is not taken into account as certificate with highest priority, but sorted as the 2nd VaccDCC in the list of all DCCs. This may lead to confusion upon presenting QR code to gate keepers, even more as there is currently no date of issue/expiry date displayed (you need to check certID by comparing with paper printouts/PDFs to find out...)
Steps to reproduce the issue
Expected behaviour
The (vacc)DCC (2/2) with latest date of issue/the longest expiry date should be the vaccDCC with the highest priority.
Possible Fix
Apply another rule 3a that accounts for expiry date here: #3811
Additional context
I don't know if this would also be necessary for recovery certificates...
Internal Tracking ID: EXPOSUREAPP-8756
The text was updated successfully, but these errors were encountered: