Community
Participate
Working Groups
Build Identifier: 20110615-0604 In attempting to validate the code signing certificate, the signing time is retrieved from the SignedContent object. In PKCS7Processor class, method processEncapContentInfo the date is parsed using a SimpleDateFormat object. With the Thai locale, the underlying calendar is a Buddhist calendar (with a Buddhist era), not the Gregorian calendar we are usually used to seeing, so the year ends up being off. As a result, a date string that starts as something like 20110826101010 expecting to be parsed into a date object for year 2011 ends up with year value of something like 1468. As a result, subsequent comparisons on the date object fail. Reproducible: Always Steps to Reproduce: Attached project uses the SignedContentFactory to get the SignedContent and call getSigningTime. It uses bundle org.eclipse.core.runtime.
Created attachment 202253 [details] test program
Created attachment 203974 [details] Patch to fix the issue
Thanks for the patch Brian! I will review and release.
Fixed with commit: http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=6dc343762ea9f1c911bbd693903a26a0c063c969
Comment on attachment 203974 [details] Patch to fix the issue Thanks Brian!