After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 424458 - unable to set&search E_CONTACT_ADDRESS_{HOME,WORK,OTHER} field
unable to set&search E_CONTACT_ADDRESS_{HOME,WORK,OTHER} field
Status: RESOLVED DUPLICATE of bug 426893
Product: evolution-data-server
Classification: Platform
Component: Contacts
unspecified
Other All
: Normal normal
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2007-03-30 13:10 UTC by Jan Navratil
Modified: 2007-05-24 09:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Jan Navratil 2007-03-30 13:10:23 UTC
Please describe the problem:
I am not able to set E_CONTACT_ADDRESS_{HOME,WORK,OTHER} fields in my addressbook.  I have created my own testing ldap server with a few entries. I set postalAddress and homePostalAddress as well. But both of them are mapped onto E_CONTACT_ADDRESS_LABEL_whathever. it seems not to be any mnapping on E_CONTACT_ADDRESS. That's way I cannot search e.g. work-city or whatever part of address field.

Steps to reproduce:
1. set up a testing LDAP server (or use whatever server you can and you know well)
2. add a few entries + their addresses
3. try to search some address field i.e. SELECT full_name, email_1, work_city FROM "LDAP Server" WHERE ( ("work_city" = "Foo") )



Actual results:
returns NO results

Expected results:
be able to search according to field in E_CONTACT_ADDRESS

Does this happen every time?
100%

Other information:
How to test it:
1. to set up your own ldap use openldap tool and set following lines to /etc/openldap/slapd.conf

database bdb
suffix "dc=example,dc=com"
rootdn "cn=root,dc=example,dc=com"
rootpw secret
directory /usr/local/var/openldap-data

2. create a file example.ldif that will contain:
dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: example 

dn: cn=root,dc=example,dc=com
objectclass: organizationalRole
cn: root

# Example from RFC 2798
dn: cn=Barbara Jensen,dc=example,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
cn: Barbara Jensen
cn: Babs Jensen
displayName: Babs Jensen
sn: Jensen
givenName: Barbara
initials: BJJ
title: manager, product development
uid: bjensen
mail: bjensen@redhat.com
mail: barbara_jensen@gmail.com
telephoneNumber: +1 408 555 1862
facsimileTelephoneNumber: +1 408 555 1992
mobile: +1 408 555 1941
roomNumber: 0209 
carLicense: 6ABC246
o: Siroe
ou: Product Development
departmentNumber: 2604
employeeNumber: 42
employeeType: full time
preferredLanguage: fr, en-gb;q=0.8, en;q=0.7
labeledURI: http://www.siroe.com/users/bjensen My Home Page
postalAddress: 123 Anystreet $ Sunnyvale, CA $ 94086
homePostalAddress: 123 StreetOfSmb $ ValeSun, NY $ 94086

# My example 
dn: cn=Jan Navratil,dc=example,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
cn: Jan Navratil
cn: Honza Navratil
displayName: jnavrati
sn: navratil
givenName: Jan
initials: JN
title: developer
uid: jnavrati
mail: jnavrati@redhat.com
telephoneNumber: +1 408 555 1862
facsimileTelephoneNumber: +1 408 555 1992
mobile: +1 408 555 1941
roomNumber: Software Engineer 
carLicense: 6ABC246
o: Red Hat
ou: Brno - Software Engineer
departmentNumber: 2604
employeeNumber: 42
employeeType: full time
labeledURI: http://www.foo.bar.com
postalAddress: 123 Kingsroad $ Hollywood, CA $ 94086
homePostalAddress: 123 Monroe Ave. $ Boston, MS $ 94086

3. add entries from file
ldapadd -x -D "cn=root,dc=example,dc=com" -W -f example.ldif
Comment 1 Ross Burton 2007-05-24 09:48:55 UTC
This is a duplicate of 426893, which contained a patch.

This made it into e-d-s 1.11.1.

*** This bug has been marked as a duplicate of 426893 ***