GNU bug report logs - #31475
25.3; authinfo password backslash problem

Previous Next

Package: emacs;

Reported by: Max Froumentin <max <at> lapin-bl.eu>

Date: Wed, 16 May 2018 20:47:01 UTC

Severity: normal

Tags: unreproducible

Found in version 25.3

Done: Michael Albinus <michael.albinus <at> gmx.de>

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 31475 in the body.
You can then email your comments to 31475 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#31475; Package emacs. (Wed, 16 May 2018 20:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Max Froumentin <max <at> lapin-bl.eu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 16 May 2018 20:47:02 GMT) Full text and rfc822 format available.

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

From: Max Froumentin <max <at> lapin-bl.eu>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.3; authinfo password backslash problem
Date: Wed, 16 May 2018 17:56:01 +0100
Assumption: 
  User's IMAP password has a backslash character ('\') in it.

Steps:
  1. Setup gnus so it connects to an imap backend
  2. Start gnus
  3. Enter the username and password of the IMAP account
  4. Say yes to saving the credentials in .authinfo
  5. Quit emacs
  6. Restart emacs
  7. M-x gnus
  8. Authentication fails

The password saved in the .authinfo file has its backlash escaped
('\\').  If the file is edited directly and the extra backslash is removed,
authentication works again.





In GNU Emacs 25.3.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G1036))
 of 2018-01-02 built on gds6112.local
Windowing system distributor 'Apple', version 10.3.1504
Configured using:
 'configure --disable-dependency-tracking --disable-silent-rules
 --enable-locallisppath=/usr/local/share/emacs/site-lisp
 --infodir=/usr/local/Cellar/emacs/25.3/share/info/emacs
 --prefix=/usr/local/Cellar/emacs/25.3 --without-x --with-xml2
 --without-dbus --without-gnutls --without-imagemagick --with-ns
 --disable-ns-self-contained'

Configured features:
JPEG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  ivy-mode: t
  global-auto-complete-mode: t
  auto-complete-mode: t
  global-magit-file-mode: t
  magit-file-mode: t
  diff-auto-refine-mode: t
  magit-auto-revert-mode: t
  auto-revert-mode: t
  global-git-commit-mode: t
  async-bytecomp-package-mode: t
  shell-dirtrack-mode: t
  projectile-mode: t
  save-place-mode: t
  global-whitespace-mode: t
  global-hl-line-mode: t
  global-linum-mode: t
  linum-mode: t
  show-paren-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
nnimap read 0k from mail.lapin-bl.eu [16 times]
nnimap read 2k from mail.lapin-bl.eu
Reading active file via nndraft...done
Checking new news...done
Ag finished
Auto-saving...done
Mark saved where search started [2 times]
Mark set [3 times]
Mark deactivated
Mark saved where search started
Quit [3 times]

Load-path shadows:
/Users/maxfroumentin/.emacs.d/elpa/let-alist-1.0.5/let-alist hides /usr/local/Cellar/emacs/25.3/share/emacs/25.3/lisp/emacs-lisp/let-alist

Features:
(shadow sort mail-extr emacsbug sendmail misearch multi-isearch vc-git
ag vc-svn find-dired gnus-topic nndraft nnmh utf-7 rfc2104
network-stream nsm starttls nnfolder nnnil gnus-agent gnus-srvr
gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view
mml-smime smime dig nntp gnus-cache ecomplete nnir gnus-sum gnus-group
gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc
nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems
nnheader wid-edit colir color counsel esh-util etags xref project swiper
flycheck flymake two-column ivy delsel ivy-overlay ffap
auto-complete-config auto-complete popup elm-mode elm-interactive subr-x
elm-font-lock rx elm-indent elm-imenu imenu elm-format elm-tags elm-util
f s magit-obsolete magit-blame magit-stash magit-bisect magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-tag
magit-merge magit-branch magit-reset magit-collab ghub url-http tls
gnutls url-gw url-auth url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util url-parse url-vars mailcap
let-alist json map auth-source magit-files magit-refs magit-status magit
magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode
diff-mode magit-core magit-autorevert autorevert filenotify
magit-process magit-margin magit-mode git-commit magit-git magit-section
eieio eieio-core magit-utils crm magit-popup log-edit message dired
rfc822 mml mml-sec password-cache epg gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns
mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log
with-editor async-bytecomp async shell dash projectile cl-seq grep
compile ibuf-ext ibuffer thingatpt edmacro kmacro multi-term cl-macs cl
term disp-table ehelp org org-macro org-footnote org-pcomplete pcomplete
org-list org-faces org-entities noutline outline easy-mmode org-version
ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys
ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs
org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs
saveplace finder-inf advice info package epg-config seq byte-opt gv
bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs
pcase cl-lib whitespace hl-line linum paren server time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote kqueue cocoa ns multi-tty
make-network-process emacs)

Memory information:
((conses 16 518120 45268)
 (symbols 48 49494 0)
 (miscs 40 543 862)
 (strings 32 120842 17573)
 (string-bytes 1 3826793)
 (vectors 16 71186)
 (vector-slots 8 1088203 8172)
 (floats 8 775 830)
 (intervals 56 3572 1023)
 (buffers 976 29))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31475; Package emacs. (Sun, 03 Jun 2018 15:28:01 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Max Froumentin <max <at> lapin-bl.eu>
Cc: 31475 <at> debbugs.gnu.org
Subject: Re: bug#31475: 25.3; authinfo password backslash problem
Date: Sun, 03 Jun 2018 17:27:07 +0200
Max Froumentin <max <at> lapin-bl.eu> writes:

Hi Max,

> Assumption: 
>   User's IMAP password has a backslash character ('\') in it.
>
> Steps:
>   1. Setup gnus so it connects to an imap backend
>   2. Start gnus
>   3. Enter the username and password of the IMAP account
>   4. Say yes to saving the credentials in .authinfo
>   5. Quit emacs
>   6. Restart emacs
>   7. M-x gnus
>   8. Authentication fails
>
> The password saved in the .authinfo file has its backlash escaped
> ('\\').  If the file is edited directly and the extra backslash is removed,
> authentication works again.
>
> In GNU Emacs 25.3.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G1036))

I cannot reproduce it here, using

In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)

The following is an extract of nnimap.el, which I have used for testing:

--8<---------------cut here---------------start------------->8---
(progn
  (require 'nnimap)
  (let ((credentials (nnimap-credentials "address" "imap" "user")))
    (funcall (nth 2 credentials))))
--8<---------------cut here---------------end--------------->8---

When I run this code snippet from a fresh Emacs started with "emacs -Q",
I am asked for

--8<---------------cut here---------------start------------->8---
IMAP password for user <at> address: 
--8<---------------cut here---------------end--------------->8---

I enter "test\user" (without the apostrophs). Then I'm asked

--8<---------------cut here---------------start------------->8---
Save auth info to file ~/.authinfo [y/n/Ne/?]
--8<---------------cut here---------------end--------------->8---

Now I type "y" (without the apostrophs), and see the result of the
evaluation in the minibuffer. And in ~/.authinfo, there is a new line

--8<---------------cut here---------------start------------->8---
machine address login user port imap password test\user
--8<---------------cut here---------------end--------------->8---

Looks like expected. Could you pls run the same scenario on your
machine? Maybe there's a difference because you use macOS, and I use GNU
Linux.

Best regards, Michael.




Added tag(s) unreproducible. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 14 Jun 2018 00:07:02 GMT) Full text and rfc822 format available.

Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Fri, 07 Sep 2018 11:23:01 GMT) Full text and rfc822 format available.

Notification sent to Max Froumentin <max <at> lapin-bl.eu>:
bug acknowledged by developer. (Fri, 07 Sep 2018 11:23:02 GMT) Full text and rfc822 format available.

Message #15 received at 31475-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Max Froumentin <max <at> lapin-bl.eu>
Cc: 31475-done <at> debbugs.gnu.org
Subject: Re: bug#31475: 25.3; authinfo password backslash problem
Date: Fri, 07 Sep 2018 13:22:18 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi Max,

>> Assumption: 
>>   User's IMAP password has a backslash character ('\') in it.
>>
>> Steps:
>>   1. Setup gnus so it connects to an imap backend
>>   2. Start gnus
>>   3. Enter the username and password of the IMAP account
>>   4. Say yes to saving the credentials in .authinfo
>>   5. Quit emacs
>>   6. Restart emacs
>>   7. M-x gnus
>>   8. Authentication fails
>>
>> The password saved in the .authinfo file has its backlash escaped
>> ('\\').  If the file is edited directly and the extra backslash is removed,
>> authentication works again.
>>
>> In GNU Emacs 25.3.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G1036))
>
> I cannot reproduce it here, using
>
> In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
>
> The following is an extract of nnimap.el, which I have used for testing:
>
> (progn
>   (require 'nnimap)
>   (let ((credentials (nnimap-credentials "address" "imap" "user")))
>     (funcall (nth 2 credentials))))
>
>
> When I run this code snippet from a fresh Emacs started with "emacs -Q",
> I am asked for
>
> IMAP password for user <at> address: 
>
>
> I enter "test\user" (without the apostrophs). Then I'm asked
>
> Save auth info to file ~/.authinfo [y/n/Ne/?]
>
>
> Now I type "y" (without the apostrophs), and see the result of the
> evaluation in the minibuffer. And in ~/.authinfo, there is a new line
>
> machine address login user port imap password test\user
>
> Looks like expected. Could you pls run the same scenario on your
> machine? Maybe there's a difference because you use macOS, and I use GNU
> Linux.

No reply, so I'm closing this bug.

Best regards, Michael.




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

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

Previous Next


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