From: Eli Zaretskii <eliz@gnu.org>
To: Jens Schmidt <jschmidt4gnu@vodafonemail.de>
Cc: 64089@debbugs.gnu.org, fgunbin@fastmail.fm, monnier@iro.umontreal.ca
Subject: bug#64089: 30.0.50; `ldap-search' errors out with `wrong-type-argument listp' when called WITHDN == t
Date: Sun, 18 Jun 2023 11:56:11 +0300 [thread overview]
Message-ID: <831qi9p2s4.fsf@gnu.org> (raw)
In-Reply-To: <7bc4f6cf-bd37-c7d6-6253-db5f82099e1e@vodafonemail.de> (message from Jens Schmidt on Sun, 18 Jun 2023 10:51:25 +0200)
> Date: Sun, 18 Jun 2023 10:51:25 +0200
> From: Jens Schmidt <jschmidt4gnu@vodafonemail.de>
> Cc: 64089@debbugs.gnu.org, monnier@iro.umontreal.ca
>
> On 2023-06-18 09:43, Jens Schmidt wrote:
>
> > Or whatever. In any case, I'll open a new bug for that to continue
> > this discussion.
>
> And of course, Filipp is right w.r.t. to API consistency. TBH, I simply
> haven't payed attention to `ldap-ignore-attribute-codings' until
> recently. So for emacs-29, I can provide a patch that backs out my
> previous patch and fixes the bug such that the *original/Gerd's* string
>
> "dn: cn=JENS_SCHMIDT,L=REGION,DC=COMPANY,DC=COM"
>
> gets appended to the result w/o triggering the
>
> wrong-type-argument listp
>
> for both `ldap-ignore-attribute-codings' equaling nil and non-nil.
>
> Basicaly the upper half of Filipp's patch, but redone such that even I
> understand it without too much eye-balling :-). Like this probably (not
> tested yet!):
>
> (cond
> (ldap-ignore-attribute-codings
> result)
> (withdn
> ;; Do not process first elements of the records
> ;; with `ldap-decode-attribute' (Bug#64089).
> (mapcar (lambda (record)
> (cons (car record)
> (mapcar #'ldap-decode-attribute
> (cdr record)))
> result)))
> (t
> (mapcar (lambda (record)
> (mapcar #'ldap-decode-attribute record))
> result))))
>
> WDYT?
I'm uncomfortable with non-trivial changes, so if this is anywhere
like Filipp's proposal, I'd rather leave it unfixed on emacs-29.
next prev parent reply other threads:[~2023-06-18 8:56 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 21:28 bug#64089: 30.0.50; `ldap-search' errors out with `wrong-type-argument listp' when called WITHDN == t Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <handler.64089.B.168686453832024.ack@debbugs.gnu.org>
2023-06-15 22:11 ` bug#64089: Acknowledgement (30.0.50; `ldap-search' errors out with `wrong-type-argument listp' when called WITHDN == t) Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-16 6:01 ` bug#64089: 30.0.50; " Eli Zaretskii
2023-06-16 15:12 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-16 18:37 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-17 8:40 ` Eli Zaretskii
2023-06-16 22:13 ` bug#64089: 30.0.50; `ldap-search' errors out with `wrong-type-argument listp' when called WITHDN == t Filipp Gunbin
2023-06-17 6:03 ` Eli Zaretskii
2023-06-17 8:41 ` Eli Zaretskii
2023-06-17 9:07 ` Eli Zaretskii
2023-06-17 23:14 ` Filipp Gunbin
2023-06-18 5:22 ` Eli Zaretskii
2023-06-19 14:27 ` Filipp Gunbin
2023-06-19 17:24 ` Eli Zaretskii
2023-06-19 18:38 ` Filipp Gunbin
2023-06-19 19:09 ` Eli Zaretskii
2023-06-19 19:27 ` Filipp Gunbin
2023-06-19 20:15 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-19 20:35 ` Filipp Gunbin
2023-06-19 21:37 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-20 14:23 ` Filipp Gunbin
2023-06-20 20:42 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-20 11:01 ` Eli Zaretskii
2023-06-20 17:52 ` Filipp Gunbin
2023-06-18 7:43 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-18 8:51 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-18 8:56 ` Eli Zaretskii [this message]
2023-06-18 11:04 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-18 22:14 ` bug#64160: " Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-19 14:11 ` Filipp Gunbin
2023-06-19 15:13 ` bug#64160: master; Implement various enhancements in ldap.el and EUDC Filipp Gunbin
2023-06-19 21:16 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-20 14:11 ` Filipp Gunbin
2023-06-20 22:23 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=831qi9p2s4.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64089@debbugs.gnu.org \
--cc=fgunbin@fastmail.fm \
--cc=jschmidt4gnu@vodafonemail.de \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.