unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: "David Spångberg" <david@tunna.org>
Cc: 18842-done@debbugs.gnu.org, Andreas Schwab <schwab@suse.de>,
	Katsumi Yamaoka <yamaoka@jpl.org>
Subject: bug#18842: 24.4; gnus not handling passwords with double quotes in .authinfo
Date: Sun, 02 Nov 2014 15:58:35 -0500	[thread overview]
Message-ID: <87y4rtcoas.fsf@lifelogs.com> (raw)
In-Reply-To: <87ppdd71nj.fsf@laptop.roflmf> ("David \=\?iso-8859-1\?Q\?Sp\=E5ng\?\= \=\?iso-8859-1\?Q\?berg\=22's\?\= message of "Mon, 27 Oct 2014 20:28:32 +0100")

On Mon, 27 Oct 2014 20:28:32 +0100 David Spångberg <david@tunna.org> wrote: 

DS> Andreas Schwab <schwab@suse.de> writes:
>> Katsumi Yamaoka <yamaoka@jpl.org> writes:
>> 
>>> IBM says[1]:
>>> If the password phrase itself contains a quotation mark, use
>>> the other style of quotation mark to enclose the password phrase.
>>> 
>>> I.e.: 'test"password'
>>> 
>>> The rule is enough to handle such a case, isn't it?

DS> This solves the problem for me at least.

>> Until you start using both. :-)

DS> IBM further bans using both forms at the same time so I guess it's a
DS> problem with the specification rather than the implementation in
DS> "auth-source.el".

I've explained the situation in the auth.texi manual with this commit to
gnus.git, which will be synchronized into Emacs as well:

commit 01c75b7c8e4ecbdaea6dda97b113a76c60458620
Author: Ted Zlatanov <tzz@lifelogs.com>
Date:   Sun Nov 2 15:45:34 2014 -0500

    * auth.texi (Help for users): Explain quoting rules better.

Background: the original netrc.el parser just used the Lisp reader. But
that reader doesn't support single-quoted strings, which is the standard
netrc format, so I modified the parser accordingly in gnus.git:

commit 1474b920b7471e4bdb4f983b98fb767d61f8037b
Author: Ted Zlatanov <tzz@lifelogs.com>
Date:   Sat Jun 15 04:03:04 2013 -0400

    auth-source netrc backend: Support single-quoted strings, multiline entries.

I've never seen passwords or other tokens with both single and double
quotes, so IMO the current parser in `auth-source-netrc-parse-one' is
sufficient.  But I'm happy to take patches or demands for it to support
some other style.  Marking this bug as done, in any case.

Ted





      reply	other threads:[~2014-11-02 20:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-26 11:54 bug#18842: 24.4; gnus not handling passwords with double quotes in .authinfo David Spångberg
2014-10-26 23:40 ` Katsumi Yamaoka
2014-10-27 10:15   ` Andreas Schwab
2014-10-27 19:28     ` David Spångberg
2014-11-02 20:58       ` Ted Zlatanov [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4rtcoas.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=18842-done@debbugs.gnu.org \
    --cc=david@tunna.org \
    --cc=schwab@suse.de \
    --cc=yamaoka@jpl.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).