View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001416 | SOGo Connector | with external server | public | 2011-08-14 15:12 | 2013-01-29 20:46 |
Reporter | Marten Gajda | Assigned To | francis | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.105 | ||||
Summary | 0001416: vCard BDAY not correctly imported if format is yyyymmdd instead of yyyy-mm-dd | ||||
Description | BDAY field is not correctly imported from vcards if the date format is not yyyy-mm-dd but yyyymmdd. The address book shows the birthday as: Geburtstag: 20040814 instead of Geburtstag: 14.08.2004 like it does when the vcard uses the yyyy-mm-dd format. According to RFC2426 and RFC2425, the format yyyymmdd is perfectly valid. RFC2426 states:
and later:
MIME-DIR means RFC 2425 which states:
the braces [] make the dashes optional so yyyymmdd, yyyy-mmdd and yyyymm-dd are all valid representations of yyyy-mm-dd. | ||||
Tags | No tags attached. | ||||
This is probably a bug in Thunderbird, not in SOGo Connector. |
|
2013-01-24 17:58
|
|
Sorry francis, but is a SOGo Connector bug. I am using version 17.0.2 here. In the file vcards.utils.js look for "bday:". The relevant function will split the birthday by the dashes - so in this context they are mandatory. But, as Marten has investigated, they are optional. So the solution is to remove the dashes in the first step and then parse the remaining YYYYMMDD using substrings. The corrected code is in bday.js. I have successfully tested the fix using ownCloud, as ownCloud will send dates as YYYYMMDD. Before the fix, the dates could not be edited in Thunderbird and also the ThunderBirthday addon did not show up any entries. Greetings, |
|
Fixed for TB10 and TB17. https://github.com/inverse-inc/sogo-connector.tb17/commit/1cb87ff4c81df23fd85a7afc769913f595638808 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2011-08-14 15:12 | Marten Gajda | New Issue | |
2011-08-17 15:36 | francis | Note Added: 0002805 | |
2013-01-24 17:58 | tempura | File Added: bday.js | |
2013-01-24 18:03 | tempura | Note Added: 0005253 | |
2013-01-29 20:46 | francis | Note Added: 0005273 | |
2013-01-29 20:46 | francis | Status | new => resolved |
2013-01-29 20:46 | francis | Resolution | open => fixed |
2013-01-29 20:46 | francis | Assigned To | => francis |