FeitianSmartcardReader / eid-applet

Automatically exported from code.google.com/p/eid-applet
Other
1 stars 0 forks source link

DataConvertorException: Unsupported Birth Date Format #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Today we tried to read an EID card with only a year provided as birthdate, but 
the applet couldn't parse the data.

This problem should have been fixed since revision 556

However it seems that the parser fails on leading or trailing spaces (ie '      
  1961' or '    1961   ' or ...) 

I tested this behaviour against latest released versions + latest trunk version 
from svn. Also the demo at 
https://www.e-contract.be/eid-applet-beta/identification.seam will give you an 
error.

I supplied a patch in attachment that will fix this bug and some unit tests.

The first patch will just fix the problem + unit test.
The second patch contains an improved version of DateOfBirthDataConvertor + 
more unit tests

I can give you a byte dump of the identity file if you want. I will not post 
this due to privacy reasons.

Best regards,

Jeff

Original issue reported on code.google.com by jeffrey....@gmail.com on 22 Sep 2011 at 4:09

Attachments:

GoogleCodeExporter commented 9 years ago
Could you send over the identity file to frank dot cornelis at fedict dot be? 
I'll certainly look into this and get it patched for the 1.0.4.GA release.

Original comment by frank.co...@gmail.com on 23 Sep 2011 at 2:31

GoogleCodeExporter commented 9 years ago
I've mailed you the identity file.

Original comment by jeffrey....@gmail.com on 23 Sep 2011 at 9:17

GoogleCodeExporter commented 9 years ago
Fixed in the source code trunk: 
http://code.google.com/p/eid-applet/source/detail?r=623

Will be included in the next eID Applet release.

Thanks for reporting this issue.

Original comment by frank.co...@gmail.com on 27 Sep 2011 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by frank.co...@gmail.com on 17 Feb 2012 at 10:17