Your message dated Sat, 21 Aug 2010 12:41:49 +0100 (WEST)
with message-id <[email protected]>
and subject line Package gq has been removed from Debian
has caused the Debian Bug report #237459,
regarding Doesn't handle directory entries with a non UTF-8 encoding
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
237459: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=237459
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gq
Version: 0.6.0-4
Severity: important
Tags: patch

Some of my LDAP records use accented letters. This makes gq crash when
browsing.

I propose the following patch. It does not resolve the problem, just
avoid the crash. The "problematic" records are still not displayed.

--- gq-0.6.0/src/browse.c       2002-06-21 02:34:32.000000000 +0200
+++ browse.c    2004-03-11 09:02:30.000000000 +0100
@@ -154,6 +154,11 @@
 
                    /* explode DN */
                    exploded_dn = gq_ldap_explode_dn(dn, FALSE);
+                       if (NULL == exploded_dn[0])
+                       {
+                               printf("Can't decode (wrong UTF-8?): %s\n", dn);
+                               continue;
+                       }
                    labels[0] = decoded_string(exploded_dn[0]);
 
                    new_entry = (dn_browse_entry *) new_dn_browse_entry(dn);

I now have warning/error messages like:
  Can't decode (wrong UTF-8?): ou=Opérations, o=xxxx


I also tried the version from Debian experimental. I don't have a crash
anymore but the GUI is blocked instead. So the result is the same:
unusable.

I also made a minimal test program to track the bug.
ldap_rdn2str() returns LDAP_DECODING_ERROR (0x54)

#include <stdio.h>
#include <ldap.h>

int main(int argc, char *argv[])
{
        char dn[] = "ou=Opérations, o=xxxx";
        LDAPDN *parts;
        int i, r;

        r = ldap_str2dn(dn, &parts, LDAP_DN_FORMAT_LDAP);
        printf("ldap_str2dn: 0x%02X\n", r);

        for (i = 0 ; parts[i] ; i++)
        {
                printf("%d\n", i);
                printf("%p\n", (*parts)[i]);

                if ((*parts)[i])
                {
                        char *v;
                        LDAPRDN ldaprdn = *(*parts)[i];

                        printf("attr: %s,  value: %s\n", 
(*ldaprdn)->la_attr.bv_val, (*ldaprdn)->la_value.bv_val);

                        r = ldap_rdn2str((*parts)[i], &v, 
LDAP_DN_FORMAT_LDAPV3);
                        printf("ldap_rdn2str: 0x%02X\n", r);

                        printf("%p\n", v);
                        if (v)
                                printf("v: %s\n", v);
                }
        }
        
        return 0;
}


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.18
Locale: LANG=fr_FR, LC_CTYPE=fr_FR

Versions of packages gq depends on:
ii  libatk1.0-0                 1.4.1-1      The ATK accessibility toolkit
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libglib2.0-0                2.2.3-1      The GLib library of C routines
ii  libgtk2.0-0                 2.2.4-3      The GTK+ graphical user interface 
ii  libkrb53                    1.3.2-1      MIT Kerberos runtime libraries
ii  libldap2                    2.1.26-1     OpenLDAP libraries
ii  libpango1.0-0               1.2.5-2.1    Layout and rendering of internatio
ii  libssl0.9.7                 0.9.7c-5     SSL shared libraries
ii  libxml2                     2.6.7-1      GNOME XML library
ii  zlib1g                      1:1.2.1-4    compression library - runtime

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 1.3.4-1+rm

You filed the bug http://bugs.debian.org/237459 in Debian BTS
against the package gq. I'm closing it at *unstable*, but it will
remain open for older distributions.

For more information about this package's removal, read
http://bugs.debian.org/593165. That bug might give the reasons why
this package was removed and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

--
Marco Rodrigues


--- End Message ---

Reply via email to