[Kolab-devel] [issue4526] [Regression] Apostrophes in surnames causing trouble in v2.2.4

Gavin McCullagh issues at kolab.org
Thu Sep 2 12:26:53 CEST 2010


New submission from Gavin McCullagh <gavin.mccullagh at gcd.ie>:

Hi,

I see a bug in v2.2.4 which can be reproduced as follows:

1. Create a user with surname with ' in it succeeds without error in web
   admin.  I created "Gav O'Really" for testing just now.
2. Find that user in the list.  You'll notice it displays as
        O\'Really, Gav
3. Click on modify on that user.  That results in this error:
        LDAP Error: No such dn: cn=Gav O\\5C\'Really,dc=....: Invalid DN syntax
4. A similar error in apache/php/php-errors.log:
        [02-Sep-2010 08:36:47] PHP Warning:  ldap_read() [<a
href='function.ldap-read'>function.ldap-read</a>]: Search: Invalid DN syntax in
/kolab/var/kolab/php/admin/include/ldap.class.php on line 187
5. If I look at the ldap database using ldapvi or slapcat I see escape
   characters in cn and sn:
        cn=Gav O\\5C'Really,dc=.....
        objectClass: top
        objectClass: inetOrgPerson
        objectClass: kolabInetOrgPerson
        sn: O\'Really
        cn: Gav O\'Really
        givenName: Gav
        userPassword: {SSHA}....


According to Gunnar, these patches may be relevant:

>
http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/kolabd/kolabd/templates/php.ini.template.in.diff?r1=1.8&r2=1.9
                                                       
>
http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/kolabd/kolabd/templates/php.ini.template.in.diff?r1=1.7&r2=1.7.2.1


and these past issues:

>          kolab/issue919 (kolab server has problems with some characters in   
                                                                               
          
>            passwords)                                                        
                                                                               
            
>          kolab/issue1880 (Poor handling of apostrophes in ldap and admin     
                                                                               
          
>            webpages)                                                         
                                                                               
            
>          kolab/issue3654 (Special character issue in Kolab web               
                                                                               
          
>            interface (e.g. vacation message))                                
                                                                               
            
>          kolab/issue3499 (creating/modifying users with special characters   
                                                                               
          
>            in name confuses web admin)

----------
messages: 26264
nosy: gavinmc
priority: urgent
status: unread
title: [Regression] Apostrophes in surnames causing trouble in v2.2.4

______________________________________
Kolab issue tracker <issues at kolab.org>
<https://issues.kolab.org/issue4526>
______________________________________




More information about the devel mailing list