View Issue Details

IDProjectCategoryView StatusLast Update
0001787SOGoWeb Address Bookpublic2014-02-07 14:37
Reportermuzzlerator Assigned Toludovic  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionsuspended 
Product Version1.3.14 
Summary0001787: SOGo won't search cyrillic letters in a LDAP address book
Description

Search for letters "?"

Greps from the slapd.log
Search trough SOGo
filter="(&(|(cn=\C3\B0\C2\90)(?mail=\C3\90\C2\90)(sn=\C3\B0\C2\90*))(|(objectClass=CourierMailAlias)(objectClass=CourierMailAccount)))"

Direct search
filter="(&(|(objectClass=CourierMailAlias)(objectClass=CourierMailAccount))(|(?mail=\D0\90)(cn=\D0\B0)(givenName=\D0\B0)(sn=\D0\B0)))"

Additional Information

SOGo config
...
defaults write sogod SOGoLanguage Russian
...

public = {
SOGoUserSources = ({
type = ldap;
id = public;
hostname = 127.0.0.1;
CNFieldName = cn;
IDFieldName = mail;
UIDFieldName = mail;
SearchFieldNames = ("cn","mail","sn");
bindFields = ("mail","cn");
baseDN = "o=hosting,dc=somedomain";
bindDN = "cn=Manager,dc=somedomain";
bindPassword = "xxxxxxxxxxxxxxxxxx";
filter = "(objectClass=CourierMailAlias OR objectClass=CourierMailAccount)";
userPasswordAlgorithm = sha;
scope = SUB;
canAuthenticate = NO;
isAddressBook = YES;
displayName = "public";
port = 389;
});
};


su -l sogo
$ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_ALL=

TagsGNUStep, GNUSTEP_STRING_ENCODING, search, utf-8

Activities

muzzlerator

muzzlerator

2012-04-28 10:04

reporter   ~0003821

Search for letters "?"
oops...
CYRILLIC CAPITAL LETTER A
U+0410
d0 90

ludovic

ludovic

2012-04-28 11:37

administrator   ~0003822

Are you able to reproduce the issue on sogo-demo.inverse.ca ?

muzzlerator

muzzlerator

2012-04-28 11:54

reporter   ~0003823

Are you able to reproduce the issue on sogo-demo.inverse.ca ?
Search is ok in the book "test"
Is it LDAP address book?

But there no records with cyrillic letters in the "Shared addresses", therefore I cant test it.

muzzlerator

muzzlerator

2012-05-03 13:41

reporter   ~0003850

Last edited: 2012-05-03 13:51

The solution is sooooo simple...

/etc/csh.cshrc:
setenv GNUSTEP_STRING_ENCODING NSUTF8StringEncoding

/etc/profile:
GNUSTEP_STRING_ENCODING="NSUTF8StringEncoding"; export GNUSTEP_STRING_ENCODING

Everything works fine now :)

wsourdeau

wsourdeau

2012-05-04 13:35

viewer   ~0003858

The export above is not needed because we already that from inside the sogo initialization code, before the GNUstep runtime is initialized.

muzzlerator

muzzlerator

2012-05-04 13:54

reporter   ~0003859

Last edited: 2012-05-04 14:06

The export above is not needed
But search doesn't work without the variable

The variable is set:

May 4 19:56:00 go slapd[4477]: conn=52373 op=1 SRCH base="o=hosting,dc=asb" scope=2 deref=0 filter="(&(|(cn=\D0\B0)(?mail=\D0\90)(sn=\D0\B0*))(|(objectClass=CourierMailAlias)(objectClass=CourierMailAccount)))"

The variable is unset:

May 4 19:57:34 go slapd[4477]: conn=52381 op=3 SRCH base="o=hosting,dc=asb" scope=2 deref=0 filter="(&(|(cn=\C3\B0\C2\90)(?mail=\C3\90\C2\90)(sn=\C3\B0\C2\90*))(|(objectClass=CourierMailAlias)(objectClass=CourierMailAccount)))"

we already that from inside the sogo initialization code
How can I debug that?
And what about the sope?

ludovic

ludovic

2014-02-07 14:37

administrator   ~0006528

Try with the latest version of SOGo. I've just tried and it works. I've also closed a similar bug report.

Issue History

Date Modified Username Field Change
2012-04-28 09:36 muzzlerator New Issue
2012-04-28 09:37 muzzlerator Tag Attached: ldap
2012-04-28 09:37 muzzlerator Tag Attached: search
2012-04-28 09:37 muzzlerator Tag Attached: utf-8
2012-04-28 10:04 muzzlerator Note Added: 0003821
2012-04-28 11:37 ludovic Note Added: 0003822
2012-04-28 11:54 muzzlerator Note Added: 0003823
2012-05-03 13:41 muzzlerator Note Added: 0003850
2012-05-03 13:42 muzzlerator Tag Detached: ldap
2012-05-03 13:43 muzzlerator Tag Attached: GNUStep
2012-05-03 13:43 muzzlerator Tag Attached: GNUSTEP_STRING_ENCODING
2012-05-03 13:51 muzzlerator Note Edited: 0003850
2012-05-04 13:35 wsourdeau Note Added: 0003858
2012-05-04 13:54 muzzlerator Note Added: 0003859
2012-05-04 13:56 muzzlerator Note Edited: 0003859
2012-05-04 14:06 muzzlerator Note Edited: 0003859
2014-02-07 14:37 ludovic Note Added: 0006528
2014-02-07 14:37 ludovic Status new => closed
2014-02-07 14:37 ludovic Assigned To => ludovic
2014-02-07 14:37 ludovic Resolution open => suspended