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

Issue 7095052: Issue 166 (OAuth) - GenericData: chainable set method (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by peleyal
Modified:
10 years, 10 months ago
Reviewers:
snnn, yanivi
CC:
ngmiceli
Base URL:
https://code.google.com/p/google-oauth-java-client/
Visibility:
Public.

Description

Issue 166 (OAuth) - GenericData: chainable set method Based on the HTTP issue - https://codereview.appspot.com/7098052

Patch Set 1 #

Total comments: 6

Patch Set 2 : Applying Yaniv's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -0 lines) Patch
M google-oauth-client-java6/src/main/java/com/google/api/client/extensions/java6/auth/oauth2/FilePersistedCredential.java View 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client-java6/src/main/java/com/google/api/client/extensions/java6/auth/oauth2/FilePersistedCredentials.java View 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/jsontoken/JsonWebSignature.java View 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/jsontoken/JsonWebToken.java View 2 chunks +10 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeRequestUrl.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeResponseUrl.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeTokenRequest.java View 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationRequestUrl.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/BrowserClientRequestUrl.java View 1 1 chunk +6 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientCredentialsTokenRequest.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/PasswordTokenRequest.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/RefreshTokenRequest.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/TokenErrorResponse.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/TokenRequest.java View 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/TokenResponse.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M google-oauth-client/src/main/java/com/google/api/client/auth/openidconnect/IdTokenResponse.java View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8
peleyal
11 years, 3 months ago (2013-01-14 16:15:32 UTC) #1
yanivi
https://codereview.appspot.com/7095052/diff/1/google-oauth-client/src/main/java/com/google/api/client/auth/oauth/AbstractOAuthGetToken.java File google-oauth-client/src/main/java/com/google/api/client/auth/oauth/AbstractOAuthGetToken.java (right): https://codereview.appspot.com/7095052/diff/1/google-oauth-client/src/main/java/com/google/api/client/auth/oauth/AbstractOAuthGetToken.java#newcode89 google-oauth-client/src/main/java/com/google/api/client/auth/oauth/AbstractOAuthGetToken.java:89: public AbstractOAuthGetToken set(String fieldName, Object value) { I know ...
11 years, 3 months ago (2013-01-14 22:02:50 UTC) #2
yanivi
Please hg pull -u add set method to: google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientCredentialsTokenRequest.java and google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/PasswordTokenRequest.java
11 years, 3 months ago (2013-01-14 22:13:19 UTC) #3
peleyal
https://codereview.appspot.com/7095052/diff/1/google-oauth-client/src/main/java/com/google/api/client/auth/oauth/AbstractOAuthGetToken.java File google-oauth-client/src/main/java/com/google/api/client/auth/oauth/AbstractOAuthGetToken.java (right): https://codereview.appspot.com/7095052/diff/1/google-oauth-client/src/main/java/com/google/api/client/auth/oauth/AbstractOAuthGetToken.java#newcode89 google-oauth-client/src/main/java/com/google/api/client/auth/oauth/AbstractOAuthGetToken.java:89: public AbstractOAuthGetToken set(String fieldName, Object value) { I reverted ...
11 years, 3 months ago (2013-01-14 22:44:19 UTC) #4
yanivi
LGTM
11 years, 3 months ago (2013-01-14 22:52:07 UTC) #5
snnn
On 2013/01/14 22:52:07, yanivi wrote: > LGTM Why the set method of com.google.api.client.auth.oauth2.AuthorizationCodeResponseUrl returns an ...
10 years, 11 months ago (2013-05-27 03:15:39 UTC) #6
yanivi
On 2013/05/27 03:15:39, snnn wrote: > On 2013/01/14 22:52:07, yanivi wrote: > > LGTM > ...
10 years, 10 months ago (2013-05-28 11:52:54 UTC) #7
peleyal
10 years, 10 months ago (2013-05-28 13:10:48 UTC) #8
Message was sent while issue was closed.
On 2013/05/28 11:52:54, yanivi wrote:
> On 2013/05/27 03:15:39, snnn wrote:
> > On 2013/01/14 22:52:07, yanivi wrote:
> > > LGTM
> > 
> > Why the set method of
> > com.google.api.client.auth.oauth2.AuthorizationCodeResponseUrl returns an
> > AuthorizationCodeRequestUrl ?
> > 
> > I got such an Exception:
> > 
> > java.lang.ClassCastException:
> > com.google.api.client.auth.oauth2.AuthorizationCodeResponseUrl cannot be
cast
> to
> > com.google.api.client.auth.oauth2.AuthorizationCodeRequestUrl
> >
>
	com.google.api.client.auth.oauth2.AuthorizationCodeResponseUrl.set(AuthorizationCodeResponseUrl.java:222)
> >
>
	com.google.api.client.auth.oauth2.AuthorizationCodeResponseUrl.set(AuthorizationCodeResponseUrl.java:58)
> >
	com.google.api.client.http.UrlEncodedParser.parse(UrlEncodedParser.java:182)
> > 	com.google.api.client.http.UrlEncodedParser.parse(UrlEncodedParser.java:96)
> > 	com.google.api.client.http.GenericUrl.<init>(GenericUrl.java:153)
> > 	com.google.api.client.http.GenericUrl.<init>(GenericUrl.java:117)
> > 	com.google.api.client.http.GenericUrl.<init>(GenericUrl.java:106)
> >
>
	com.google.api.client.auth.oauth2.AuthorizationCodeResponseUrl.<init>(AuthorizationCodeResponseUrl.java:99)
> >
>
	com.google.api.client.extensions.servlet.auth.oauth2.AbstractAuthorizationCodeCallbackServlet.doGet(AbstractAuthorizationCodeCallbackServlet.java:115)
> > 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> > 	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> > 
> > I wonder if the exception is related to this code change.
> 
> Yes, good catch.  Eyal, can you please fix this for 1.15.1?

Take a look in this fix CL - https://codereview.appspot.com/9782046/
Sign in to reply to this message.

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