Validation app crashes when COBR datetime field is taged with 0 tag
See original GitHub issueDescribe the bug
Regarding specifications - DateTime fields in COBR should be tagged with 0 tag. New version of validation app crashes when datetime field is tagged with 0 tag.
Issue could be found in
validationResults = engine.validate(
this.greenCertificate.schemaVersion,
JSON_SCHEMA_V1,
rules,
externalParameter,
this.hcertJson
)
this.hcertJson contains not valid josn with COBOR 0 tag:
{“t”: [{“sc”: 0(“2021-06-10T10:11:42.000Z”), “nm”: “SARS-COV-2 viruso sukeltos COVID-19 ligos diagnostika (Diagnostic of COVID-19 disease caused by SARS-CoV-2 virus)”, “tt”: “LP6464-4”, “co”: “LT”, “tc”: “VIEŠOJI ĮSTAIGA CENTRO POLIKLINIKA”, “ci”: “URN:UVCI:01:LT:44CM2COVWRYXTSQ6HZKBP#C”, “is”: “LR sveikatos apsaugos ministerija”, “tg”: “840539006”, “tr”: “260415000”}], “nam”: {“fnt”: “PAVARDENYTE<PAVARDENE”, “fn”: “Pavardenytė-Pavardenė”, “gnt”: “BIRUTE<MARIJA”, “gn”: “Birutė-Marija”}, “dob”: “2000-10-03”, “ver”: “1.0.0”}
So validation engine crashes because of unexpected character.
Expected behaviour
The validation app should remove the 0 tag from COBOR and set this.hcertJson to valid Json.
Steps to reproduce the issue
- Create Test certificate and tag sc value with 0 tag
- Scan QR with validation app
Or just scan our QR
https://github.com/eu-digital-green-certificates/dgc-testdata/blob/main/LT/png/2.png
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
@ragaisis Thank you:)
@Tomas-Alb can we close the issue?