GNU bug report logs - #1899
url-cookie-retrieve is not prepared for missing localpart

Previous Next

Package: emacs;

Reported by: Klaus Straubinger <KSNetz <at> UseNet.ArcorNews.DE>

Date: Wed, 14 Jan 2009 12:50:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Chong Yidong <cyd <at> stupidchicken.com>
Subject: bug#1899: marked as done (url-cookie-retrieve is not prepared for
 missing localpart)
Date: Wed, 14 Jan 2009 20:55:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 14 Jan 2009 15:48:04 -0500
with message-id <87fxjlvcl7.fsf <at> cyd.mit.edu>
and subject line Re: url-cookie-retrieve is not prepared for missing localpart
has caused the Emacs bug report #1899,
regarding url-cookie-retrieve is not prepared for missing localpart
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact help-debbugs <at> gnu.org
immediately.)


-- 
1899: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1899
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Klaus Straubinger <KSNetz <at> UseNet.ArcorNews.DE>
To: bug-gnu-emacs <at> gnu.org
Subject: url-cookie-retrieve is not prepared for missing localpart
Date: Wed, 14 Jan 2009 13:43:27 +0100 ()
In GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'


the function url-cookie-retrieve (defined in lisp/url/url-cookie.el) is
not prepared for the case that the parameter localpart could be nil:
(regexp-quote nil) is an error. This is especially problematic since
the corresponding function for setting cookies, url-cookie-store,
defines the parameter localpart as optional.

Test example:
(require 'url-cookie)
(url-cookie-store "test" "42" nil "www.gnu.org")
followed by
(url-cookie-retrieve "www.gnu.org" nil)

-- 
Klaus Straubinger



[Message part 3 (message/rfc822, inline)]
From: Chong Yidong <cyd <at> stupidchicken.com>
To: Klaus Straubinger <KSNetz <at> UseNet.ArcorNews.DE>
Cc: 1899-done <at> debbugs.gnu.org
Subject: Re: url-cookie-retrieve is not prepared for missing localpart
Date: Wed, 14 Jan 2009 15:48:04 -0500
> the function url-cookie-retrieve (defined in lisp/url/url-cookie.el)
> is not prepared for the case that the parameter localpart could be
> nil: (regexp-quote nil) is an error. This is especially problematic
> since the corresponding function for setting cookies,
> url-cookie-store, defines the parameter localpart as optional.

I've checked in a fix.  Thanks.


This bug report was last modified 16 years and 136 days ago.

Previous Next


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