Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on chinese passport #202

Open
iAbdul opened this issue Feb 1, 2024 · 5 comments · May be fixed by #209
Open

Fails on chinese passport #202

iAbdul opened this issue Feb 1, 2024 · 5 comments · May be fixed by #209

Comments

@iAbdul
Copy link

iAbdul commented Feb 1, 2024

Hi,
Code works good with Canadian and usa passport however it fails with Chinese passport and shows alert "unsupported data group". Can you guide me how to make it work on Chinese passport.
Thanks!

@TerjeLon
Copy link

TerjeLon commented Apr 9, 2024

Not all passports follow the ICAO standard regarding listing Datagroups in the COM's 5C tag. They actually list some elements in the COM 5C tag that is not in the ICAO-standard.

This should perhaps not give an error, as reading the passport itself should be fine.

Perhaps a solution here could be to return the PassportModel in the callback instead of an error, and add a "warning/errors" parameter to the Model so consumers can be notified of the deviations that has occured.

So what actually happens here is that a DG-group is listed in the COM, but it does not actually exist. So it should be skipped instead of throwing

@advatar
Copy link

advatar commented Apr 9, 2024

I have noticed this too. There can be 19 DataGroups but the app only supports to 16. Try and add DG17-19 with no parsing.

@TerjeLon
Copy link

TerjeLon commented Apr 9, 2024

I have noticed this too. There can be 19 DataGroups but the app only supports to 16. Try and add DG17-19 with no parsing.

Theres no official documentation on those datagroups.

i will try to create a pr for this when i have the time

@TerjeLon TerjeLon linked a pull request Apr 10, 2024 that will close this issue
@TerjeLon
Copy link

@iAbdul could you try again with the branch on the PR above and see if this fixes it for you?
@advatar did you have any documents you could try on? Testing is much appreciated as i dont have any documents on hand.

Please comment in the PR so that if/when @AndyQ eventually gets around to it he can see that the fix is verified.

@iAbdul
Copy link
Author

iAbdul commented Sep 21, 2024

@iAbdul could you try again with the branch on the PR above and see if this fixes it for you? @advatar did you have any documents you could try on? Testing is much appreciated as i dont have any documents on hand.

Please comment in the PR so that if/when @AndyQ eventually gets around to it he can see that the fix is verified.

@TerjeLon @AndyQ it seems working with skip tag. Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants