GNU bug report logs - #19046
24.4; url-retrieve-synchronously does not use username/password in URL

Previous Next

Package: emacs;

Reported by: Faried Nawaz <faried <at> gmail.com>

Date: Thu, 13 Nov 2014 17:37:01 UTC

Severity: normal

Tags: confirmed, fixed

Found in version 24.4

Fixed in version 25.1

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 19046 in the body.
You can then email your comments to 19046 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#19046; Package emacs. (Thu, 13 Nov 2014 17:37:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Faried Nawaz <faried <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 13 Nov 2014 17:37:02 GMT) Full text and rfc822 format available.

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

From: Faried Nawaz <faried <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: mah <at> everybody.org
Subject: 24.4; url-retrieve-synchronously does not use username/password in URL
Date: Thu, 13 Nov 2014 22:06:39 +0500
If I do

 (url-generic-parse-url "http://user:pass <at> 127.0.0.1:8442/")

it returns a struct with the username and password fields properly
parsed.  However, if I do

(url-retrieve-synchronously "http://user:pass <at> 127.0.0.1:8442/")

it seems to ignore the embedded username/password, and I have to work
around that by doing something like

(let ((my-auth '(("some realm" . "base64-encoded-field")))
      (url-basic-auth-storage 'my-auth))
  (url-retrieve-synchronously "http://127.0.0.1:8442/"))

I could not readily find a function to use the embedded
username/password in the URL without assigning to
url-basic-auth-storage.  (If there is one, I think it should be better
documented.)


Thanks,

Faried.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19046; Package emacs. (Fri, 25 Dec 2015 19:09:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Faried Nawaz <faried <at> gmail.com>
Cc: mah <at> everybody.org, 19046 <at> debbugs.gnu.org
Subject: Re: bug#19046: 24.4;
 url-retrieve-synchronously does not use username/password in URL
Date: Fri, 25 Dec 2015 20:08:17 +0100
Faried Nawaz <faried <at> gmail.com> writes:

> If I do
>
>  (url-generic-parse-url "http://user:pass <at> 127.0.0.1:8442/")
>
> it returns a struct with the username and password fields properly
> parsed.  However, if I do
>
> (url-retrieve-synchronously "http://user:pass <at> 127.0.0.1:8442/")

I can confirm that this bug is present in Emacs 25.2.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 25 Dec 2015 19:09:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19046; Package emacs. (Fri, 25 Dec 2015 19:24:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Faried Nawaz <faried <at> gmail.com>
Cc: mah <at> everybody.org, 19046 <at> debbugs.gnu.org
Subject: Re: bug#19046: 24.4;
 url-retrieve-synchronously does not use username/password in URL
Date: Fri, 25 Dec 2015 20:22:48 +0100
Faried Nawaz <faried <at> gmail.com> writes:

> If I do
>
>  (url-generic-parse-url "http://user:pass <at> 127.0.0.1:8442/")
>
> it returns a struct with the username and password fields properly
> parsed.  However, if I do
>
> (url-retrieve-synchronously "http://user:pass <at> 127.0.0.1:8442/")

I've now fixed this for Emacs 25.1.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 25 Dec 2015 19:24:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.1, send any further explanations to 19046 <at> debbugs.gnu.org and Faried Nawaz <faried <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 25 Dec 2015 19:24:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19046; Package emacs. (Fri, 25 Dec 2015 19:38:02 GMT) Full text and rfc822 format available.

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

From: John Wiegley <jwiegley <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: mah <at> everybody.org, 19046 <at> debbugs.gnu.org, Faried Nawaz <faried <at> gmail.com>
Subject: Re: bug#19046: 24.4;
 url-retrieve-synchronously does not use username/password in URL
Date: Fri, 25 Dec 2015 11:36:50 -0800
>>>>> Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I've now fixed this for Emacs 25.1.

Should we mark this bug as "-done", or are you waiting for confirmation from
the OP?

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19046; Package emacs. (Fri, 25 Dec 2015 19:40:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: John Wiegley <jwiegley <at> gmail.com>
Cc: mah <at> everybody.org, 19046 <at> debbugs.gnu.org, Faried Nawaz <faried <at> gmail.com>
Subject: Re: bug#19046: 24.4;
 url-retrieve-synchronously does not use username/password in URL
Date: Fri, 25 Dec 2015 20:38:58 +0100
John Wiegley <jwiegley <at> gmail.com> writes:

>>>>>> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> I've now fixed this for Emacs 25.1.
>
> Should we mark this bug as "-done", or are you waiting for confirmation from
> the OP?

I think I marked it as done?

I'm using the debbugs interface, so the control messages are separate
messages, and also say what version the bug was fixed in.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 23 Jan 2016 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 152 days ago.

Previous Next


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