GNU bug report logs -
#13264
24.2.91; error when set plstore-cache-passphrase-for-symmetric-encryption to t
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Mon, 24 Dec 2012 09:35:01 UTC
Severity: normal
Tags: fixed
Found in version 24.2.91
Fixed in versions 24.3, 24.4
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
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 13264 in the body.
You can then email your comments to 13264 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
ueno <at> unixuser.org, bug-gnu-emacs <at> gnu.org:
bug#13264; Package
emacs.
(Mon, 24 Dec 2012 09:35:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to
ueno <at> unixuser.org, bug-gnu-emacs <at> gnu.org.
(Mon, 24 Dec 2012 09:35:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
(setq plstore-cache-passphrase-for-symmetric-encryption t)
and start getting an error like this:
Debugger entered--Lisp error: (wrong-type-argument stringp #<buffer plstore /Users/leo/.emacs.d/oauth2.plstore>)
file-truename(#<buffer plstore /Users/leo/.emacs.d/oauth2.plstore>)
plstore-passphrase-callback-function((epg-context . [OpenPGP nil nil nil nil nil nil (plstore-passphrase-callback-function . [#<buffer plstore /Users/leo/.emacs.d/oauth2.plstore> (("be779ce11027f97bfaca2c35afcb4c08" :secret-access-token t :secret-refresh-token t :secret-access-response t)) "-----BEGIN PGP MESSAGE-----\nVersion: GnuPG v1.4.12 (Darwin)\n\njA0EAwMCllbjnrJDa/BgycAwvwmrdD/2GojxLAKvL6VZc/a2nVackxSi17RlISLY\nColDmOt9s91/6nhm73uiiUGgEvGKg8IsKd1jDiC70mPfaZYMqADi5tYMsGuEzCwP\nHbg2MBt+cie6kAaBO4+84/lWLY9ZN6bJ0LovTz7vpruSar0nXCdGJabp2tVwP/+j\nOJRmSdSZ562Hb5QSkQ9CuiotgJpPXHGuYaawxIFIAJMUDr+nhAR5ai9TE0ZLIJN6\nJE7qWVpGv3wxLFfgPuCiH+NYlIdPu/CUHq3b5QWmvSo6AerKSgrECWKZLVB4SKa1\nqfpfZPPo5YE0IKqI4rTyz0Y5\n=PmdM\n-----END PGP MESSAGE-----\n" nil (("be779ce11027f97bfaca2c35afcb4c08" :secret-access-token t :secret-refresh-token t :secret-access-response t))]) (plstore-progress-callback-function . "Decrypting /Users/leo/.emacs.d/oauth2.plstore") nil nil #<process epg> "/var/folders/mf/8_qnj_n146d0wxb32wdnb9jh0000gn/T/epg-output17499onV" nil decrypt]) SYM [#<buffer plstore /Users/leo/.emacs.d/oauth2.plstore> (("be779ce11027f97bfaca2c35afcb4c08" :secret-access-token t :secret-refresh-token t :secret-access-response t)) "-----BEGIN PGP MESSAGE-----\nVersion: GnuPG v1.4.12 (Darwin)\n\njA0EAwMCllbjnrJDa/BgycAwvwmrdD/2GojxLAKvL6VZc/a2nVackxSi17RlISLY\nColDmOt9s91/6nhm73uiiUGgEvGKg8IsKd1jDiC70mPfaZYMqADi5tYMsGuEzCwP\nHbg2MBt+cie6kAaBO4+84/lWLY9ZN6bJ0LovTz7vpruSar0nXCdGJabp2tVwP/+j\nOJRmSdSZ562Hb5QSkQ9CuiotgJpPXHGuYaawxIFIAJMUDr+nhAR5ai9TE0ZLIJN6\nJE7qWVpGv3wxLFfgPuCiH+NYlIdPu/CUHq3b5QWmvSo6AerKSgrECWKZLVB4SKa1\nqfpfZPPo5YE0IKqI4rTyz0Y5\n=PmdM\n-----END PGP MESSAGE-----\n" nil (("be779ce11027f97bfaca2c35afcb4c08" :secret-access-token t :secret-refresh-token t :secret-access-response t))])
............
BTW, why doesn't plstore-cache-passphrase-for-symmetric-encryption
default to epa-file-cache-passphrase-for-symmetric-encryption.
patch:
@@ -126,7 +126,7 @@
(defun plstore-passphrase-callback-function (_context _key-id plstore)
(if plstore-cache-passphrase-for-symmetric-encryption
- (let* ((file (file-truename (plstore--get-buffer plstore)))
+ (let* ((file (file-truename (buffer-file-name (plstore--get-buffer plstore))))
(entry (assoc file plstore-passphrase-alist))
passphrase)
(or (copy-sequence (cdr entry))
Diff finished. Mon Dec 24 17:31:44 2012
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#13264; Package
emacs,gnus.
(Tue, 25 Dec 2012 21:52:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 13264 <at> debbugs.gnu.org (full text, mbox):
Leo <sdl.web <at> gmail.com> writes:
> patch:
Thanks; applied.
--
(domestic pets only, the antidote for overdose, milk.)
http://lars.ingebrigtsen.no * Lars Magne Ingebrigtsen
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Tue, 25 Dec 2012 21:52:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.4, send any further explanations to
13264 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Tue, 25 Dec 2012 21:52:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#13264; Package
emacs,gnus.
(Thu, 27 Dec 2012 08:13:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 13264 <at> debbugs.gnu.org (full text, mbox):
Leo wrote:
> (setq plstore-cache-passphrase-for-symmetric-encryption t)
AFAICS, this variable is totally undocumented and not marked as a user
option.
> - (let* ((file (file-truename (plstore--get-buffer plstore)))
> + (let* ((file (file-truename (buffer-file-name (plstore--get-buffer plstore))))
There's a function `plstore-get-file' that does the above. (No idea why
this one gets a plstore- prefix rather than a plstore-- one.)
Anyway, this seems like a safe fix that should be in emacs-24, so I
installed it there as well.
bug Marked as fixed in versions 24.3.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org.
(Thu, 27 Dec 2012 08:27:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#13264; Package
emacs,gnus.
(Fri, 28 Dec 2012 08:08:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 13264 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
>> (setq plstore-cache-passphrase-for-symmetric-encryption t)
>
> AFAICS, this variable is totally undocumented and not marked as a user
> option.
That's because we don't recommend to use Elisp level passphrase cache,
but I agree some people still need it. Maybe good to add some
documentation on it.
> There's a function `plstore-get-file' that does the above.
Good point, though I don't care much.
> (No idea why this one gets a plstore- prefix rather than a plstore--
> one.)
plstore-- prefix are used to mark private functions, while plstore-
prefix are for public functions. Here, `plstore-get-file' is a public
function.
> Anyway, this seems like a safe fix that should be in emacs-24, so I
> installed it there as well.
Thanks!
--
Daiki Ueno
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org.
(Fri, 25 Jan 2013 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.