Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(990)

Issue 3227041: Add support for Rietveld instance that permanently moved by support HTTP 301. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by M-A
Modified:
13 years, 11 months ago
CC:
techtonik, GvR, codereview-discuss_googlegroups.com, jam
Base URL:
https://rietveld.googlecode.com/svn/trunk
Visibility:
Public.

Description

Add support for Rietveld instance that permanently moved by support HTTP 301. Before this change, HTTP 301 would result in a permement error. Update upload.py to accept HTTP 301 and uses the right host to get a cookie against. It results in a slower operation due to the additional requests but makes a much smoother transition while updating the links to the new rietveld instance. Tested manually against an instance that returns HTTP 301 on all request to a rietveld instance in a different domain. BUG=248 TEST=Tested with a real instance being moved

Patch Set 1 #

Patch Set 2 : Fix compatibility for python 2.4 #

Patch Set 3 : Forgot to increment tries #

Patch Set 4 : Propagate host to _GetAuthToken() to make it coherent #

Total comments: 2

Patch Set 5 : Simplified a lot, doesn't need to handle 301 during cookie retrieval #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M upload.py View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8
M-A
Please take a look. It is important for a rietveld instance move that I want ...
14 years, 3 months ago (2010-11-19 19:34:37 UTC) #1
M-A
Ping
14 years, 3 months ago (2010-12-01 21:51:56 UTC) #2
Ilia Mirkin
http://codereview.appspot.com/3227041/diff/9001/upload.py File upload.py (right): http://codereview.appspot.com/3227041/diff/9001/upload.py#newcode408 upload.py:408: self._Authenticate('%s://%s' % (url_loc[0], url_loc[1])) This will conflict with the ...
14 years, 2 months ago (2010-12-05 16:45:58 UTC) #3
M-A
http://codereview.appspot.com/3227041/diff/9001/upload.py File upload.py (right): http://codereview.appspot.com/3227041/diff/9001/upload.py#newcode408 upload.py:408: self._Authenticate('%s://%s' % (url_loc[0], url_loc[1])) On 2010/12/05 16:45:58, Ilia Mirkin ...
14 years, 2 months ago (2010-12-05 18:35:12 UTC) #4
Andi Albrecht
On Sun, Dec 5, 2010 at 7:35 PM, <maruel@chromium.org> wrote: > > http://codereview.appspot.com/3227041/diff/9001/upload.py > File ...
14 years, 2 months ago (2010-12-05 20:45:58 UTC) #5
M-A
Reduced the patch to 5 lines, I tested with double redirect on different authentication domains. ...
14 years, 2 months ago (2010-12-07 12:08:29 UTC) #6
Andi Albrecht
Looks good to me. Would it be a good idea to print out a notice ...
14 years, 2 months ago (2010-12-10 14:29:31 UTC) #7
Andi Albrecht
14 years, 2 months ago (2010-12-17 15:39:10 UTC) #8
Committed r632 (finally, and sorry for the delay).

Thanks!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b