GNU bug report logs - #26184
25.2; auth-source-delete is broken

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Mon, 20 Mar 2017 02:57:01 UTC

Severity: normal

Tags: fixed

Found in version 25.2

Fixed in version 26.2

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26184 in the body.
You can then email your comments to 26184 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26184; Package emacs. (Mon, 20 Mar 2017 02:57:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 20 Mar 2017 02:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; auth-source-delete is broken
Date: Mon, 20 Mar 2017 11:55:47 +0900
auth-source-delete function is defined as below.

> (defun auth-source-delete (&rest spec)
>   "Delete entries from the authentication backends according to SPEC.
> Calls `auth-source-search' with the :delete property in SPEC set to t.
> The backend may not actually delete the entries.

> Returns the deleted entries."
>   (auth-source-search (plist-put spec :delete t)))

If you actually use it, an error is raised.  It should be defined as
below.

> (apply 'aurh-source-search (plist-put spec :delete t))

-- 
Kazuhiro Ito




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26184; Package emacs. (Wed, 18 Jul 2018 01:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 26184 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Cc: 26184 <at> debbugs.gnu.org
Subject: Re: bug#26184: 25.2; auth-source-delete is broken
Date: Tue, 17 Jul 2018 21:32:13 -0400
tags 26184 fixed
close 26184 26.2
quit

Kazuhiro Ito <kzhr <at> d1.dion.ne.jp> writes:

> auth-source-delete function is defined as below.
>
>> (defun auth-source-delete (&rest spec)
>>   "Delete entries from the authentication backends according to SPEC.
>> Calls `auth-source-search' with the :delete property in SPEC set to t.
>> The backend may not actually delete the entries.
>
>> Returns the deleted entries."
>>   (auth-source-search (plist-put spec :delete t)))
>
> If you actually use it, an error is raised.  It should be defined as
> below.
>
>> (apply 'aurh-source-search (plist-put spec :delete t))

Fixed and added test in emacs-26.

[1: cb50077b1e]: 2018-07-17 21:28:26 -0400
  Fix auth-source-delete (Bug#26184)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=cb50077b1eb7c1467f2f200e01599b391d025bfa




Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 18 Jul 2018 01:33:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 26.2, send any further explanations to 26184 <at> debbugs.gnu.org and Kazuhiro Ito <kzhr <at> d1.dion.ne.jp> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 18 Jul 2018 01:33:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 Aug 2018 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 256 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.