all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Filipp Gunbin <fgunbin@fastmail.fm>
To: Juri Linkov <juri@linkov.net>,
	Jens Lechtenboerger <lechten@wi.uni-muenster.de>
Cc: 58605@debbugs.gnu.org
Subject: bug#58605: 29.0.50; Commit 2a2f5530fa2 breaks ldap-search-internal
Date: Thu, 20 Oct 2022 20:58:38 +0300	[thread overview]
Message-ID: <m2fsfil6lt.fsf@fastmail.fm> (raw)
In-Reply-To: <86fsfidgyr.fsf@mail.linkov.net> (Juri Linkov's message of "Thu,  20 Oct 2022 11:12:04 +0300")

Hi,

Jens, did you by chance modify ldap-ldapsearch-args?  Its default value
contains "-LLL" which suppresses noise like "search: 2" that you see.

I've now pushed the fix to master, could you please try?


Juri,

On 20/10/2022 11:12 +0300, Juri Linkov wrote:

>> commit 2a2f5530fa230e2b994be5683e63763833bb6a0a breaks
>> ldap-search-internal for searches with empty results.
>
> I confirm that ldap search is broken.  When the output contains for example:
>
>   dn: cn=admin,dc=example,dc=com
>
> then it raises the error:
>
>   insert-file-contents: Opening input file: No such file or directory,
>   ~/cn=admin,dc=example,dc=com

"dn" at the start of each block is handled specially, as it should be
the only attribute whose value is not written to file (by "-tt"
ldapsearch option).

> I guess this whole block
>
> 	      (with-current-buffer bufval
> 		(erase-buffer)
> 		(set-buffer-multibyte nil)
> 		(insert-file-contents-literally value)
> 		(delete-file value)
> 		(setq value (buffer-string)))
>
> should be executed only on a condition that checks that value contains "file://".

Agreed.

Thanks.
Filipp





  reply	other threads:[~2022-10-20 17:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18  6:05 bug#58605: 29.0.50; Commit 2a2f5530fa2 breaks ldap-search-internal Jens Lechtenboerger
2022-10-18 14:17 ` Eli Zaretskii
2022-10-20  8:12 ` Juri Linkov
2022-10-20 17:58   ` Filipp Gunbin [this message]
2022-10-21  6:25     ` Jens Lechtenboerger
2022-10-21 15:16       ` Filipp Gunbin
2022-10-22  9:43         ` Jens Lechtenboerger
2022-10-24 16:06           ` Filipp Gunbin
2022-10-25  5:55             ` Jens Lechtenboerger
2022-10-25 13:12               ` Filipp Gunbin
2022-10-25 13:42                 ` Jens Lechtenboerger
2022-10-25 15:07                   ` Filipp Gunbin
2022-10-26  6:07                     ` Jens Lechtenboerger
2022-10-26 13:20                       ` Filipp Gunbin

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=m2fsfil6lt.fsf@fastmail.fm \
    --to=fgunbin@fastmail.fm \
    --cc=58605@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=lechten@wi.uni-muenster.de \
    /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.