Closed MikeMcC399 closed 2 years ago
Hello @MikeMcC399, thank you for reporting it. This will be fixed in version 1.30
@pucherd
I still see this error occurring in CovPass 1.30.
If I scan from a PDF file I get the success message "Import successful". If I repeat trying to scan from the same PDF file I get the error message "No valid certificate was found". This is the same error as in earlier versions.
Note that scanning the second time via the camera gives the correct error message "COVID certificate already added".
I revisited this issue and noticed that the error message changed with 1.30
when trying to import a certificate from a PDF file where the corresponding certificate is already stored.
This makes the error message correct, however it seems confusing to have a different error message when importing from PDF compared to scanning via the camera in the case of the corresponding certificate already existing in the CovPass certificate store.
I will close the issue and at the same time encourage more consistency in the error messages if possible in the future.
Avoid duplicates
Technical details
Describe the bug
When attempting to import a certificate from a PDF document, where the document has already been stored, the error message "No valid certificate was found" is misleading.
If the scanned certificate is deleted and the import attempt repeated, then the import succeeds.
Steps to reproduce the issue
Expected behaviour
When attempting to import a certificate from a document, where the certificate is already stored, the error message "COVID certificate already added" or similar should be displayed.
This is the error message displayed when a user attempts to scan, rather than to import, a certificate which is already stored.