|
|
Created:
6 years, 8 months ago by pgervais Modified:
6 years, 8 months ago CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master Visibility:
Public. |
DescriptionFixed reauthentication issue
Renewal of OAuth2 credentials did not work on appengine because it
replies with 302 instead of 401 when authentication fails. Configured
it to attempt credentials renewal on a 302.
Of course this will prevent any 302 from working normally, but it works
with Rietveld since it does not use 302.
BUG=319446
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=264639
Patch Set 1 #
Total comments: 5
Patch Set 2 : Small fixes #Messages
Total messages: 15 (0 generated)
This should fix issues we have with an authenticated Rietveld.
lgtm % comment Also upstream it to oa2client.REFRESH_STATUS_CODES https://codereview.chromium.org/238273011/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/238273011/diff/1/rietveld.py#newcode33 rietveld.py:33: # appengine replies with 302 when authentication fails (sigh) nit: s/appengine/Appengine/g Also add period. https://codereview.chromium.org/238273011/diff/1/rietveld.py#newcode34 rietveld.py:34: oa2client.REFRESH_STATUS_CODES = [302, 401] Use oa2client.REFRESH_STATUS_CODES.append(302) instead, just incase the library changes this in the future.
I meant, upstream to https://code.google.com/p/rietveld/source/browse/rietveld.py?name=chromium. You can send a patch to maruel@ and he'll commit it On Thu, Apr 17, 2014 at 1:10 PM, <hinoka@google.com> wrote: > lgtm % comment > Also upstream it to oa2client.REFRESH_STATUS_CODES > > > https://codereview.chromium.org/238273011/diff/1/rietveld.py > File rietveld.py (right): > > https://codereview.chromium.org/238273011/diff/1/rietveld.py#newcode33 > rietveld.py:33: # appengine replies with 302 when authentication fails > (sigh) > nit: s/appengine/Appengine/g > Also add period. > > https://codereview.chromium.org/238273011/diff/1/rietveld.py#newcode34 > rietveld.py:34: oa2client.REFRESH_STATUS_CODES = [302, 401] > Use oa2client.REFRESH_STATUS_CODES.append(302) instead, just incase the > library changes this in the future. > > https://codereview.chromium.org/238273011/ > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
https://codereview.chromium.org/238273011/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/238273011/diff/1/rietveld.py#newcode33 rietveld.py:33: # appengine replies with 302 when authentication fails (sigh) On 2014/04/17 17:10:40, Ryan T. wrote: > nit: s/appengine/Appengine/g > Also add period. Done. https://codereview.chromium.org/238273011/diff/1/rietveld.py#newcode34 rietveld.py:34: oa2client.REFRESH_STATUS_CODES = [302, 401] On 2014/04/17 17:10:40, Ryan T. wrote: > Use oa2client.REFRESH_STATUS_CODES.append(302) instead, just incase the library > changes this in the future. Done.
On 2014/04/17 17:12:43, Ryan T. wrote: > I meant, upstream to > https://code.google.com/p/rietveld/source/browse/rietveld.py?name=chromium. > You can send a patch to maruel@ and he'll commit it I don't see what to upstream. It seems to me that appcfg.py already handles authentication properly. In addition, this is specific to OAuth2 authentication, which is not used by the admin tools. Or did I miss something?
The CQ bit was checked by pgervais@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pgervais@chromium.org/238273011/1
The CQ bit was unchecked by commit-bot@chromium.org
Presubmit check for 238273011-1 failed and returned exit status 1. Running presubmit commit checks ... Checking out rietveld... Running save-description-on-failure.sh Running push-basic.sh Running upstream.sh Running submit-from-new-dir.sh Running abandon.sh Running submodule-merge-test.sh Running upload-local-tracking-branch.sh Running hooks.sh Running post-dcommit-hook-test.sh Running upload-stale.sh Running patch.sh Running basic.sh ** Presubmit ERRORS ** Missing LGTM from an OWNER for these files: depot_tools/rietveld.py Presubmit checks took 158.9s to calculate. Was the presubmit check useful? If not, run "git cl presubmit -v" to figure out which PRESUBMIT.py was run, then run git blame on the file to figure out who to ask for help.
maruel? can you lgtm that as well?
let's see if my rslgtm is good enough.
lgtm assuming you did want Ryan asked. https://codereview.chromium.org/238273011/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/238273011/diff/1/rietveld.py#newcode34 rietveld.py:34: oa2client.REFRESH_STATUS_CODES = [302, 401] On 2014/04/17 17:28:00, pgervais wrote: > On 2014/04/17 17:10:40, Ryan T. wrote: > > Use oa2client.REFRESH_STATUS_CODES.append(302) instead, just incase the > library > > changes this in the future. > > Done. You forgot to upload a new version.
The CQ bit was checked by pgervais@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pgervais@chromium.org/238273011/20001
Message was sent while issue was closed.
Change committed as 264639 |