Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Issue 5309007: [ChromeOS] Make GaiaAutheFetcher parsing logic default to service_unavailable (Closed)

Created:
10 years ago by Chris Masone
Modified:
9 years, 7 months ago
Reviewers:
John Gregg
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

[ChromeOS] Make GaiaAutheFetcher parsing logic default to service_unavailable The logic that parses responses from Google Accounts servers was defaulting to INVALID_GAIA_CREDENTIALS, which indicate a successful communication with teh backend that resulted in a failing authentication attempt. Gibberish was thus interpreted this way. We should instead interpret gibberish as an unsuccessful communication attempt. BUG=chromium-os:8943 TEST=unit tests, installed on device and ran successful login and failed login autotests. Also tried live login. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68104

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -2 lines) Patch
M chrome/common/net/gaia/gaia_auth_fetcher.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.cc View 2 chunks +8 lines, -1 line 4 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc View 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Chris Masone
10 years ago (2010-11-30 19:32:32 UTC) #1
John Gregg
Can you also try this on the linux_sync try bot (and other trybots)? http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_auth_fetcher.cc File ...
10 years ago (2010-12-01 00:58:15 UTC) #2
Chris Masone
http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_auth_fetcher.cc File chrome/common/net/gaia/gaia_auth_fetcher.cc (right): http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_auth_fetcher.cc#newcode360 chrome/common/net/gaia/gaia_auth_fetcher.cc:360: GoogleServiceAuthError::SERVICE_UNAVAILABLE); On 2010/12/01 00:58:15, John Gregg wrote: > Neither ...
10 years ago (2010-12-01 16:51:26 UTC) #3
Chris Masone
ping? On 2010/12/01 16:51:26, Chris Masone wrote: > http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_auth_fetcher.cc > File chrome/common/net/gaia/gaia_auth_fetcher.cc (right): > > ...
10 years ago (2010-12-02 18:56:00 UTC) #4
John Gregg
http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_auth_fetcher.cc File chrome/common/net/gaia/gaia_auth_fetcher.cc (right): http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_auth_fetcher.cc#newcode360 chrome/common/net/gaia/gaia_auth_fetcher.cc:360: GoogleServiceAuthError::SERVICE_UNAVAILABLE); On 2010/12/01 16:51:26, Chris Masone wrote: > On ...
10 years ago (2010-12-02 19:02:16 UTC) #5
Chris Masone
http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_auth_fetcher.cc File chrome/common/net/gaia/gaia_auth_fetcher.cc (right): http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_auth_fetcher.cc#newcode360 chrome/common/net/gaia/gaia_auth_fetcher.cc:360: GoogleServiceAuthError::SERVICE_UNAVAILABLE); On 2010/12/02 19:02:16, John Gregg wrote: > On ...
10 years ago (2010-12-02 22:59:49 UTC) #6
John Gregg
10 years ago (2010-12-02 23:01:24 UTC) #7
On 2010/12/02 22:59:49, Chris Masone wrote:
>
http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_aut...
> File chrome/common/net/gaia/gaia_auth_fetcher.cc (right):
> 
>
http://codereview.chromium.org/5309007/diff/1/chrome/common/net/gaia/gaia_aut...
> chrome/common/net/gaia/gaia_auth_fetcher.cc:360:
> GoogleServiceAuthError::SERVICE_UNAVAILABLE);
> On 2010/12/02 19:02:16, John Gregg wrote:
> > On 2010/12/01 16:51:26, Chris Masone wrote:
> > > On 2010/12/01 00:58:15, John Gregg wrote:
> > > > Neither one of these is natural as the default.  If we are going to
change
> > the
> > > > default now, perhaps it's an opportunity to add "UNKNOWN_ERROR".
> > > 
> > > I dunno...it seems to me that what this means is we can't successfully
talk
> to
> > > the service, so SERVICE_UNAVAILABLE makes sense.  I don't know that using
> > > UNKNOWN_ERROR would allow us to show a more useful error to the user in
this
> > > case.  I suppose we could add UNKNOWN_ERROR for logging purposes, or to
> allow
> > > callers of this API to distinguish these cases, but conflate this error
with
> > > something like SERVICE_UNAVAILABLE for UI messaging purposes?
> > 
> > I was thinking SERVICE_UNAVAILABLE implies "try again later" where as this
> > incomprensible response means something is more seriously wrong, like we're
> > talking to a different version of the server.
> > 
> > But this is probably fine.
> 
> We've seen this in a captive portal situation as well, so really... "try again
> later" is the only thing the system can do in this case, kinda no matter what.
> 
> Given that, and the trybot run...how do you feel about the change?

LGTM

Powered by Google App Engine
This is Rietveld 408576698