View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003902 | SOGo Connector | with SOGo | public | 2016-11-16 05:34 | 2016-11-16 05:34 |
Reporter | pbSogo | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Linux | OS | Fedora | OS Version | 24 |
Product Version | 31.0.3 | ||||
Summary | 0003902: SOGo connector allows upload of invalid VCARDs and don't display error on UI | ||||
Description | SOGo 31.0.3 and also 31.0.4 allow upload of invalid VCARDs, e.g. missing an according to RFC mandatory FN. Python's vobject implementation is strict enough to reject such VCARD. Currently it's unclear to me how the server should respond in this case, I have adjusted Radicale to detect broken VCARD early enough (means before storing) and respond currently with "412", but probably a different error code including also a root cause message should be returned to be able to display in SOGo connector UI something like: "can't upload VCARD because it's rejected by server with following reason: 'VCARD components must contain at least 1 FN'" | ||||
Steps To Reproduce | Create a new addressbook entry only containing a name and e-mail address, wipe manualy the FN field and then save. Server side: ERROR: Object broken on serialize (skip 'upload'): C74D2C04-3130-0001-F19F-15001AEF9710.vcf ('VCARD components must contain at least 1 FN') (..) message from python's vobject Content of VCARD: ERROR: Item content ('upload'): C74D2C04-3130-0001-F19F-15001AEF9710.vcf: | ||||
Additional Information | SOGo connector should reject upload of VCARDs, which are invalid, means misses mandatory fields and report this to UI. SOGo connector log: new sync: 1 => 412 caused by server because of broken VCARD detected, to be discussed whether the return code should be a different one stack: undefinedurl: https://***/test.vcf/ stack: undefinedurl: https://***/test.vcf/ => 404 caused by server, because broken VCARD was not stored on server | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2016-11-16 05:34 | pbSogo | New Issue |