question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validation app crashes when COBR datetime field is taged with 0 tag

See original GitHub issue

Describe 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

https://github.com/eu-digital-green-certificates/dgca-verifier-app-android/blob/main/app/src/main/java/dgca/verifier/app/android/verification/VerificationViewModel.kt#L183

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

  1. Create Test certificate and tag sc value with 0 tag
  2. 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:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SchulzeStTSIcommented, Jun 30, 2021

@ragaisis Thank you:)

0reactions
SchulzeStTSIcommented, Jul 6, 2021

@Tomas-Alb can we close the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

cobra/user_guide.md at main · spf13/cobra - GitHub
In a Cobra app, typically the main.go file is very bare. It serves one purpose: initializing Cobra. package main import ( "{pathToYourApp}/cmd" )...
Read more >
Cobra documentation - GitHub Pages
In a Cobra app, typically the main.go file is very bare. ... Validation of positional arguments can be specified using the Args field...
Read more >
npmsearchfullcat_npm143.txt - GitHub
=ExxKA 2013-11-19 0.0.9 amazon sendgrid stable email active-tags ... on their content =deleteman 2014-02-20 0.1.0 angular form field link binding event ...
Read more >
A curated list of awesome Go frameworks, libraries and ...
PortAudio - Go bindings for the PortAudio audio I/O library. ... Dev-friendly CLI apps: sets up flags, defaults, and usage based on struct...
Read more >
Cisco APIC REST API Configuration Guide, Release 4.1(x)
Configuring COOP Authentication Using the REST API 465 ... To simplify API operations, you can assign tags or an alias to an object....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found