View Issue Details

IDProjectCategoryView StatusLast Update
0004278SOGoBackend Address Bookpublic2017-09-08 04:02
ReporterKyoshiro-san Assigned Tofrancis  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platform[Server] LinuxOSDebianOS Version8 (Jessie)
Product Version3.2.10 
Fixed in Version4.0.0 
Summary0004278: vCard ORG entry has reversed o/ou values
Description

Fetching a vCard using 3.2.10.20170907-1 version of SOGo, ORG field is reversed and we obtain:
ORG=organizational unit (ou);organizational name (o)
instead of:
ORG=organizational name (o);organizational unit (ou)

This leads Thunderbird SOGo connector to populate fields in the wrong order, placing LDAP "o" values in Department and LDAP "ou" values in Organization. Same problem of course on DAVDroid on mobile even though it's less visible.

Steps To Reproduce
  • Create accounts in your LDAP having "o" and "ou" attributes
  • Install version 3.2.10.20170907-1 of SOGo and configure it with LDAP addressbook
  • Install sogo-connector-31.0.5 on thunderbird
  • Setup the addressbook sync in thunderbird
  • Department and Organization are reversed.
Additional Information

The RFC states:

6.6.4. ORG

Special notes: The property is based on the X.520 Organization Name
and Organization Unit attributes [CCITT.X520.1988]. The property
value is a structured type consisting of the organization name,
followed by zero or more levels of organizational unit names.

  The SORT-AS parameter MAY be applied to this property.

ABNF:

 ORG-param = "VALUE=text" / sort-as-param / language-param
           / pid-param / pref-param / altid-param / type-param
           / any-param
 ORG-value = component *(";" component)

Example: A property value consisting of an organizational name,
organizational unit 0000001 name, and organizational unit 0000002 name.

       ORG:ABC\, Inc.;North American Division;Marketing
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

sogo: master 3189e0e1

2017-09-07 13:41:51

francis

Details Diff
LDIF to vCard: inverse values of "ou" and "o"

Fixes 0004278
Affected Issues
0004278
mod - SoObjects/Contacts/NGVCard+SOGo.m Diff File

Issue History

Date Modified Username Field Change
2017-09-07 11:13 Kyoshiro-san New Issue
2017-09-07 13:56 francis Changeset attached => sogo master 3189e0e1
2017-09-07 13:56 francis Assigned To => francis
2017-09-07 13:56 francis Resolution open => fixed
2017-09-07 13:56 francis Status new => resolved
2017-09-07 13:56 francis Fixed in Version => 4.0.0