From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: lebitso Newsgroups: gmane.emacs.bugs Subject: bug#31846: 26.1; secrets.el can't create gnome keyring items/smtpmail.el can't get credentials from gnome keyring Date: Fri, 15 Jun 2018 12:19:49 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1529083852 27739 195.159.176.226 (15 Jun 2018 17:30:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2018 17:30:52 +0000 (UTC) User-Agent: Posteo Webmail To: 31846@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 15 19:30:48 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTsYg-00074o-SV for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jun 2018 19:30:47 +0200 Original-Received: from localhost ([::1]:48553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTsao-0006KT-1L for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jun 2018 13:32:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTsZ0-0005NW-8X for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2018 13:31:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTsYw-00024Q-Un for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2018 13:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42729) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTsYw-00023e-Jb for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2018 13:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fTsYw-0006QB-5C for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2018 13:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: lebitso Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jun 2018 17:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31846 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152908384524644 (code B ref -1); Fri, 15 Jun 2018 17:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jun 2018 17:30:45 +0000 Original-Received: from localhost ([127.0.0.1]:50622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTsYe-0006PP-AK for submit@debbugs.gnu.org; Fri, 15 Jun 2018 13:30:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTlpz-0006zQ-FN for submit@debbugs.gnu.org; Fri, 15 Jun 2018 06:20:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTlps-0002UE-FJ for submit@debbugs.gnu.org; Fri, 15 Jun 2018 06:20:06 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54778) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTlps-0002U1-Bv for submit@debbugs.gnu.org; Fri, 15 Jun 2018 06:20:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTlpq-0002KK-Ar for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2018 06:20:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTlpl-0002I2-BO for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2018 06:20:02 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:44679) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTlpk-0002F9-Sd for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2018 06:19:57 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id DD75D20E5B for ; Fri, 15 Jun 2018 12:19:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1529057993; bh=OaUQif/TZPpvUu7B/XTIY0lgsPXGj0KlsWSCNUBYheQ=; h=Date:From:To:Subject:From; b=U05HW4Fj2K+BQGybxM4VLQrTFiQzT4VdKbqSiNQdtzusRP8j/GmRMeMfGA2qlJy0q uC807Q1DdJt7PB+SPgv8vPqRMqXnJNZO+284AKDAluxmw4uQuzG5KfP1HLGQYTfSTP PMj7UaC2YhaE4cAgjUW8v650c+E6/iGcv4F9UqSOo6bDq8U0MkejCulQUB/5tVGs2t zadclw28S521/VVTTXLHbs38R51GgGFQO0+bpdk+2aLAJU/DUlggpnHJOaRg0NXL2c vfOjnAopjWk+J0+vkBNRGkIwEa/n1dNjJiCH+UrWho47V7tO7btPrdbSFOGIFXeCPK MEbucWJxCbUww== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 416c1K4pglz9rxZ for ; Fri, 15 Jun 2018 12:19:49 +0200 (CEST) X-Sender: lebitso@posteo.net X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 15 Jun 2018 13:30:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147464 Archived-At: Hello List, my initial problem was that I can't send mails from mu4e anymore, when I try to it fails and gives the message apply: Wrong type argument: consp, "host" I then found out that I can send mails if I enter the the credentials manually instead of getting them from gnome keyring as I usually do. So I looked into it and found there's another problem with secrets.el that i think is related. To create items in my keyring I use (secrets-create-item "Default keyring" "NAME" "PASSWORD" :host "HOST" :user "USER" :port "PORT") I know this used to work a few weeks ago but if I try to evaluate this or any expression with secrets-create-item and keyword arguments, now i get the following error: Debugger entered--Lisp error: (wrong-type-argument consp "host") dbus-message-internal(1 :session "org.freedesktop.secrets" "/org/freedesktop/secrets/collection/Default_5fkeyring" "org.freedesktop.Secret.Collection" "CreateItem" dbus-call-method-handler (:array (:dict-entry "org.freedesktop.Secret.Item.Label" (:variant "NAME")) (:dict-entry "org.freedesktop.Secret.Item.Type" (:variant "org.freedesktop.Secret.Generic")) (:dict-entry "org.freedesktop.Secret.Item.Attributes" (:variant (:array :dict-entry "host" "HOST" :dict-entry "user" "USER" :dict-entry "port" "PORT")))) (:struct :object-path "/org/freedesktop/secrets/session/s4" (:array :signature "y") (:array :byte 80 :byte 65 :byte 83 :byte 83 :byte 87 :byte 79 :byte 82 :byte 68) "text/plain") nil) apply(dbus-message-internal 1 :session "org.freedesktop.secrets" "/org/freedesktop/secrets/collection/Default_5fkeyring" "org.freedesktop.Secret.Collection" "CreateItem" dbus-call-method-handler ((:array (:dict-entry "org.freedesktop.Secret.Item.Label" (:variant "NAME")) (:dict-entry "org.freedesktop.Secret.Item.Type" (:variant "org.freedesktop.Secret.Generic")) (:dict-entry "org.freedesktop.Secret.Item.Attributes" (:variant (:array :dict-entry "host" "HOST" :dict-entry "user" "USER" :dict-entry "port" "PORT")))) (:struct :object-path "/org/freedesktop/secrets/session/s4" (:array :signature "y") (:array :byte 80 :byte 65 :byte 83 :byte 83 :byte 87 :byte 79 :byte 82 :byte 68) "text/plain") nil)) dbus-call-method(:session "org.freedesktop.secrets" "/org/freedesktop/secrets/collection/Default_5fkeyring" "org.freedesktop.Secret.Collection" "CreateItem" (:array (:dict-entry "org.freedesktop.Secret.Item.Label" (:variant "NAME")) (:dict-entry "org.freedesktop.Secret.Item.Type" (:variant "org.freedesktop.Secret.Generic")) (:dict-entry "org.freedesktop.Secret.Item.Attributes" (:variant (:array :dict-entry "host" "HOST" :dict-entry "user" "USER" :dict-entry "port" "PORT")))) (:struct :object-path "/org/freedesktop/secrets/session/s4" (:array :signature "y") (:array :byte 80 :byte 65 :byte 83 :byte 83 :byte 87 :byte 79 :byte 82 :byte 68) "text/plain") nil) secrets-create-item("Default keyring" "NAME" "PASSWORD" :host "HOST" :user "USER" :port "PORT") eval((secrets-create-item "Default keyring" "NAME" "PASSWORD" :host "HOST" :user "USER" :port "PORT") nil) elisp--eval-last-sexp(nil) #f(compiled-function (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area.\nInteractively, with a non `-' prefix argument, print output into\ncurrent buffer.\n\nNormally, this function truncates long output according to the\nvalue of the variables `eval-expression-print-length' and\n`eval-expression-print-level'. With a prefix argument of zero,\nhowever, there is no such truncation. Such a prefix argument\nalso causes integers to be printed in several additional formats\n(octal, hexadecimal, and character when the prefix argument is\n-1 or the integer is `eval-expression-print-maximum-character' or\nless).\n\nIf `eval-expression-debug-on-error' is non-nil, which is the default,\nthis command arranges for all errors to enter the debugger." (interactive "P") #)(nil) #f(compiled-function (&rest _it) #)() eval-sexp-fu-flash-doit-simple(#f(compiled-function (&rest _it) #) #f(compiled-function (&rest args2) #) #f(compiled-function (&rest args2) #)) eval-sexp-fu-flash-doit(#f(compiled-function (&rest _it) #) #f(compiled-function (&rest args2) #) #f(compiled-function (&rest args2) #)) esf-flash-doit(#f(compiled-function (&rest _it) #) #f(compiled-function (&rest args2) #) #f(compiled-function (&rest args2) #) #f(compiled-function (&rest args2) #)) ad-Advice-eval-last-sexp(#f(compiled-function (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area.\nInteractively, with a non `-' prefix argument, print output into\ncurrent buffer.\n\nNormally, this function truncates long output according to the\nvalue of the variables `eval-expression-print-length' and\n`eval-expression-print-level'. With a prefix argument of zero,\nhowever, there is no such truncation. Such a prefix argument\nalso causes integers to be printed in several additional formats\n(octal, hexadecimal, and character when the prefix argument is\n-1 or the integer is `eval-expression-print-maximum-character' or\nless).\n\nIf `eval-expression-debug-on-error' is non-nil, which is the default,\nthis command arranges for all errors to enter the debugger." (interactive "P") #) nil) apply(ad-Advice-eval-last-sexp #f(compiled-function (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area.\nInteractively, with a non `-' prefix argument, print output into\ncurrent buffer.\n\nNormally, this function truncates long output according to the\nvalue of the variables `eval-expression-print-length' and\n`eval-expression-print-level'. With a prefix argument of zero,\nhowever, there is no such truncation. Such a prefix argument\nalso causes integers to be printed in several additional formats\n(octal, hexadecimal, and character when the prefix argument is\n-1 or the integer is `eval-expression-print-maximum-character' or\nless).\n\nIf `eval-expression-debug-on-error' is non-nil, which is the default,\nthis command arranges for all errors to enter the debugger." (interactive "P") #) nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp) (save-excursion (let ((max 10)) (while (and (> max 0) (sp-point-in-string-or-comment)) (setq max (1- max)) (sp-up-sexp))) (sp-up-sexp arg) (call-interactively 'eval-last-sexp)) (let ((evil-move-beyond-eol t)) (save-excursion (let ((max 10)) (while (and (> max 0) (sp-point-in-string-or-comment)) (setq max (1- max)) (sp-up-sexp))) (sp-up-sexp arg) (call-interactively 'eval-last-sexp))) spacemacs/eval-current-form-sp(1) funcall-interactively(spacemacs/eval-current-form-sp 1) call-interactively(spacemacs/eval-current-form-sp nil nil) command-execute(spacemacs/eval-current-form-sp) The wrong-type-argument is always the first keyword given to secrets-create-item. Without keyword arguments the function works. All other secrets-Functions seem to work as expected. I'm on Arch Linux. Other Applications can create new items in the keyring without a problem. The only thing that I can think of that has changed since the last time I kno this worked is the upgrade to emacs26. The Problem does occur in the same way with emacs -Q as it does with my full configuration. I've posted this on the subreddit already (https://www.reddit.com/r/emacs/comments/8r1hnc/is_secretsel_broken/) and am not yet sure that this isn't some issue with my system, even though I have no idea what could've caused it so I'd appreciate any feedback on whether you can reproduce this issue. Thanks, L. In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-05-29 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12000000 Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: de_DE.UTF-8 value of $LC_NUMERIC: de_DE.UTF-8 value of $LC_TIME: de_DE.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix