Your message dated Sat, 14 Jan 2023 02:39:42 +0000
with message-id <e1pgwsm-002wmq...@fasolo.debian.org>
and subject line Bug#1016185: fixed in openldap 2.5.13+dfsg-3
has caused the Debian Bug report #1016185,
regarding slapd: Broken encoding of non-ASCII organization names
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 ow...@bugs.debian.org
immediately.)


-- 
1016185: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016185
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: slapd
Version: 2.5.12+dfsg-2
Tags: patch

The `postinst` maintscript of `slapd` incorrectly encodes organization names with non-ASCII characters.

The issue is that values received from debconf (already in UTF-8) are encoded once again via the function `encode_utf8`.

This turns

    "pé" (0x70 0xC3 0xA9 = U+0070, U+00E9)

into

    "pé" (0x70 0xC3 0x8e 0xC2 0xA9 = U+0070, U+00C3, U+00A9)

There are two possible scenarios:

1. If one assumes that the string returned by debconf is UTF-8 encoded (that is the case in all modern setups), then there is no need for another round of encoding.

2. If instead, one assumes that the string returned by debconf is not UTF-8 encoded, then one should also know which encoding it is in, in order to perform the right conversion.

The current code produces wrong results in both cases.

A patch to fix this problem can be found at https://salsa.debian.org/openldap-team/openldap/-/merge_requests/6

Regards

--
Gioele Barabucci

--- End Message ---
--- Begin Message ---
Source: openldap
Source-Version: 2.5.13+dfsg-3
Done: Ryan Tandy <r...@nardis.ca>

We believe that the bug you reported is fixed in the latest version of
openldap, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1016...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan Tandy <r...@nardis.ca> (supplier of updated openldap package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 13 Jan 2023 16:29:59 -0800
Source: openldap
Architecture: source
Version: 2.5.13+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenLDAP Maintainers 
<pkg-openldap-de...@lists.alioth.debian.org>
Changed-By: Ryan Tandy <r...@nardis.ca>
Closes: 1016185
Changes:
 openldap (2.5.13+dfsg-3) unstable; urgency=medium
 .
   [ Ryan Tandy ]
   * Disable flaky test test063-delta-multiprovider. Mitigates #1010608.
 .
   [ Gioele Barabucci ]
   * slapd.scripts-common: Avoid double-UTF8-encoding org name (Closes: 
#1016185)
   * d/slapd.scripts-common: Remove outdated `migrate_to_slapd_d_style`
   * d/slapd.postinst: Remove test for ancient version
   * slapd.scripts-common: Remove unused `normalize_ldif`
   * d/slapd.scripts-common: Use sed instead of perl in `release_diagnostics`
Checksums-Sha1:
 a5ecc49d08ac9e586ae223e461805bfbf8f675ea 3224 openldap_2.5.13+dfsg-3.dsc
 2df67dc67c24a72a0b9e9d4cfc39772774793e66 164116 
openldap_2.5.13+dfsg-3.debian.tar.xz
Checksums-Sha256:
 2c0381c357ce9c376b01086ec211ea2a9cbf1f6f7b692e4cf8fa79b928368a76 3224 
openldap_2.5.13+dfsg-3.dsc
 2d56d8083614e13809a4b2826acc00bc977a5d41fe8275861657e0249b73ad05 164116 
openldap_2.5.13+dfsg-3.debian.tar.xz
Files:
 93df4d0a41fd5fef2ca1440d4c7606bf 3224 net optional openldap_2.5.13+dfsg-3.dsc
 5f18d13b25b2a38e6928ca9e74a13b53 164116 net optional 
openldap_2.5.13+dfsg-3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEPSfh0nqdQTd5kOFlIp/PEvXWa7YFAmPB/xsPHHJ5YW5AbmFy
ZGlzLmNhAAoJECKfzxL11mu2cKMP/RiJFCNuGlWs60XeEAnF7wjkLr6BzvWtD5/O
vQawJGTMcj0lOT8wyyHAtbIuCo0er+9qOQ3kpdq9wGRsVlTwM/AfDZJgSM+g6Y/8
ZHnqAWcqGyoiwXVDJVjLfwOIaOgRbKBCnBCUgCWVsQvBv7A+KSrwgyOj8eV/eNtE
SOjNhAjUYvnb0wVlwfuQiu/QubqV6mgaQ/JlEJL/IjzKy3RU9FoW/+p5HiyxUYYF
NKu3Hl/Jfo33tgbHX6HQcC3o9C41r0EVjEMWG/RIDUJEdEP/6Ryzyj75h9h+oBj5
L/ioCfLWlxjGjgOqIoGF8saYTpx7A4haSQoRE6aC4hd6E+w8gHBaBvkH25BsDlEd
ZlTE17hoNqbixwET6NrGoxalWhfnZKy5vkti4lmpZxRDqZJvebmAtjeDiOHIpZZ7
b7ZahdJCZsVD69cUc6DlKq91fXi2CQMq2P02pgsTPpJR4vrDxgb2+BlfdsIRnwMp
+ef1i6daKc0D1kkN4t/EmhBj/+uA7C11Hv9u+A+u4uhGdWeAleDQ+7hjZqMzgoVW
XqiE4vGqBaHfm1ZKBjKbAa45nLBXTOwTgQThiZmLI8XSvT3s3VoXrpMuppzg9kQw
3pBjrv2Lhq4z6j9eYnR0//i7kldVthXURWjCpEst2KVBUFINIfS0AAtv8JUJw3BA
aTwrqN9X
=E4qW
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to