darcs

Issue 621 darcs2 with libwww: does not follow redirects

Title darcs2 with libwww: does not follow redirects
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List alec, darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy
Assigned To
Topics Darcs2, LibWWW

Created on 2008-01-27.04:46:16 by alec, last changed 2009-10-23.23:42:57 by admin.

Messages
msg2803 (view) Author: alec Date: 2008-01-27.04:46:14
I was trying out the new libwww support and found that it fails on an easy case:
darcs doesn't follow 302 redirects.

I see:

$ darcs pull

darcs failed:  Not a repository:
http://www.common-lisp.net/project/cl-stm/darcs/cl-stm (Failed to download URL
http://www.common-lisp.net/project/cl-stm/darcs/cl-stm/_darcs/inventory : libwww
error code: 302)

When I use wget to fetch the file and look at the http headers:

$ wget -S http://www.common-lisp.net/projeccl-stm/darcs/cl-stm/_darcs/inventory
--23:30:55-- 
http://www.common-lisp.net/project/cl-stm/darcs/cl-stm/_darcs/inventory
           => `inventory'
Resolving www.common-lisp.net... 80.68.86.115
Connecting to www.common-lisp.net|80.68.86.115|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 302 Found
  Date: Sun, 27 Jan 2008 04:30:56 GMT
  Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-22
  Location: http://common-lisp.net/project/cl-stm/darcs/cl-stm/_darcs/inventory
  Connection: close
  Content-Type: text/html; charset=iso-8859-1
  X-Pad: avoid browser bug
Location: http://common-lisp.net/project/cl-stm/darcs/cl-stm/_darcs/inventory
[following]
--23:30:56--  http://common-lisp.net/project/cl-stm/darcs/cl-stm/_darcs/inventory
           => `inventory'
Resolving common-lisp.net... 80.68.86.115
Connecting to common-lisp.net|80.68.86.115|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
  Date: Sun, 27 Jan 2008 04:30:56 GMT
  Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-22
  Last-Modified: Fri, 12 Jan 2007 10:49:33 GMT
  ETag: "2ebcc-5931-45a767bd"
  Accept-Ranges: bytes
  Content-Length: 22833
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
  Content-Type: text/plain; charset=iso-8859-1
Length: 22,833 (22K) [text/plain]

100%[=======================================>] 22,833        66.70K/s             

23:30:58 (66.60 KB/s) - `inventory' saved [22833/22833]

There's a redirect from www.common-lisp.net to common-lisp.net.  This ought to
be handled.
msg2831 (view) Author: droundy Date: 2008-01-28.14:19:29
Fixed by Dmitry.  Thanks!
History
Date User Action Args
2008-01-27 04:46:16aleccreate
2008-01-27 05:02:40markstossettopic: + LibWWW
nosy: droundy, tommy, beschmi, kowey, alec
2008-01-28 14:19:31droundysetstatus: unread -> resolved
nosy: droundy, tommy, beschmi, kowey, alec
messages: + msg2831
2009-08-06 17:52:32adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, thorkilnaur, - droundy, alec
2009-08-06 20:55:35adminsetnosy: - beschmi
2009-08-10 22:12:14adminsetnosy: + alec, - markstos, darcs-devel, zooko, jast, dagit, Serware, mornfall
2009-08-25 18:04:01adminsetnosy: + darcs-devel, - simon
2009-08-27 13:53:21adminsetnosy: tommy, kowey, darcs-devel, alec, thorkilnaur, dmitry.kurochkin
2009-10-23 22:34:01adminsetnosy: + awb, - alec
2009-10-23 23:42:57adminsetnosy: + alec, - awb