[tahoe-lafs-trac-stream] [tahoe-lafs] #965: CLI commands should follow HTTP redirects
tahoe-lafs
trac at tahoe-lafs.org
Thu Mar 22 21:04:49 UTC 2012
#965: CLI commands should follow HTTP redirects
-------------------------+-------------------------------------------------
Reporter: | Owner:
davidsarah | Status: new
Type: defect | Milestone: soon
Priority: major | Version: 1.6.0
Component: code- | Keywords: forward-compatibility http
frontend-cli | standards easy
Resolution: |
Launchpad Bug: |
-------------------------+-------------------------------------------------
Description changed by davidsarah:
Old description:
> As mentioned in #958, it is normally the responsibility of an HTTP client
> to follow redirects, but the CLI commands don't do so. This is because
> source:src/allmydata/scripts/common_http.py uses Python's {{{httplib}}}
> directly. Up to now this hasn't mattered because the CLI commands only
> make HTTP requests that will not redirect. However, if #958 is
> implemented then any request might redirect.
>
> This is easy to fix, for example by using {{{urllib2}}} as described
> [http://diveintopython.org/http_web_services/redirects.html here].
New description:
As mentioned in #958, it is normally the responsibility of an HTTP client
to follow redirects, but the CLI commands don't do so. This is because
source:src/allmydata/scripts/common_http.py uses Python's {{{httplib}}}
directly. Up to now this hasn't mattered because the CLI commands only
make HTTP requests that will not redirect. However, if #958 is implemented
then any request might redirect.
This is easy to fix, for example by using {{{urllib2}}} as described
[http://www.diveintopython.net/http_web_services/redirects.html here].
--
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/965#comment:2>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list