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

Issue 9958043: code review 9958043: undo CL 9672043 / 38d1b743fd69 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 12 months ago by adg
Modified:
12 years, 12 months ago
Reviewers:
ikai, bradfitz
CC:
campoy, bradfitz, golang-dev
Visibility:
Public.

Description

undo CL 9672043 / 38d1b743fd69 I have had reports that this breaks user code. Update issue 34 ««« original CL description google-api-go-client: update generated code with new param encoding from https://codereview.appspot.com/9671043/ R=adg, bradfitz CC=golang-dev https://codereview.appspot.com/9672043 »»»

Patch Set 1 #

Patch Set 2 : diff -r 38d1b743fd69 https://code.google.com/p/google-api-go-client #

Patch Set 3 : diff -r 38d1b743fd69 https://code.google.com/p/google-api-go-client #

Patch Set 4 : diff -r 38d1b743fd69 https://code.google.com/p/google-api-go-client #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2520 lines, -31693 lines) Patch
M adexchangebuyer/v1.1/adexchangebuyer-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M adexchangebuyer/v1.1/adexchangebuyer-gen.go View 1 2 3 12 chunks +15 lines, -27 lines 0 comments Download
M adexchangebuyer/v1.2/adexchangebuyer-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M adexchangebuyer/v1.2/adexchangebuyer-gen.go View 1 2 3 12 chunks +15 lines, -27 lines 0 comments Download
M adexchangebuyer/v1/adexchangebuyer-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M adexchangebuyer/v1/adexchangebuyer-gen.go View 1 2 3 12 chunks +15 lines, -27 lines 0 comments Download
M adexchangeseller/v1/adexchangeseller-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M adexchangeseller/v1/adexchangeseller-gen.go View 1 2 3 14 chunks +21 lines, -37 lines 0 comments Download
R admin/directory_v1/admin-api.json View 1 2 3 1 chunk +0 lines, -2562 lines 0 comments Download
R admin/directory_v1/admin-gen.go View 1 2 3 1 chunk +0 lines, -4578 lines 0 comments Download
R admin/reports_v1/admin-api.json View 1 2 3 1 chunk +0 lines, -519 lines 0 comments Download
R admin/reports_v1/admin-gen.go View 1 2 3 1 chunk +0 lines, -690 lines 0 comments Download
M adsense/v1.1/adsense-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M adsense/v1.1/adsense-gen.go View 1 2 3 23 chunks +41 lines, -75 lines 0 comments Download
M adsense/v1.2/adsense-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M adsense/v1.2/adsense-gen.go View 1 2 3 31 chunks +49 lines, -99 lines 0 comments Download
M adsense/v1/adsense-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M adsense/v1/adsense-gen.go View 1 2 3 8 chunks +12 lines, -16 lines 0 comments Download
M adsensehost/v4.1/adsensehost-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M adsensehost/v4.1/adsensehost-gen.go View 1 2 3 29 chunks +44 lines, -90 lines 0 comments Download
M analytics/v2.4/analytics-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M analytics/v2.4/analytics-gen.go View 1 2 3 9 chunks +15 lines, -21 lines 0 comments Download
M analytics/v3/analytics-api.json View 1 2 3 6 chunks +4 lines, -18 lines 0 comments Download
M analytics/v3/analytics-gen.go View 1 2 3 25 chunks +51 lines, -90 lines 0 comments Download
M androidpublisher/v1/androidpublisher-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M androidpublisher/v1/androidpublisher-gen.go View 1 2 3 5 chunks +15 lines, -13 lines 0 comments Download
M audit/v1/audit-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M audit/v1/audit-gen.go View 1 2 3 4 chunks +11 lines, -7 lines 0 comments Download
M bigquery/v2/bigquery-api.json View 1 2 3 6 chunks +2 lines, -24 lines 0 comments Download
M bigquery/v2/bigquery-gen.go View 1 2 3 27 chunks +45 lines, -99 lines 0 comments Download
M blogger/v2/blogger-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M blogger/v2/blogger-gen.go View 1 2 3 12 chunks +23 lines, -35 lines 0 comments Download
M blogger/v3/blogger-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M blogger/v3/blogger-gen.go View 1 2 3 19 chunks +32 lines, -58 lines 0 comments Download
M books/v1/books-api.json View 1 2 3 4 chunks +2 lines, -41 lines 0 comments Download
M books/v1/books-gen.go View 1 2 3 43 chunks +40 lines, -207 lines 0 comments Download
M calendar/v3/calendar-api.json View 1 2 3 4 chunks +65 lines, -3 lines 0 comments Download
M calendar/v3/calendar-gen.go View 1 2 3 39 chunks +147 lines, -103 lines 0 comments Download
M civicinfo/us_v1/civicinfo-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M civicinfo/us_v1/civicinfo-gen.go View 1 2 3 5 chunks +10 lines, -8 lines 0 comments Download
M compute/v1beta13/compute-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M compute/v1beta13/compute-gen.go View 1 2 3 43 chunks +71 lines, -145 lines 0 comments Download
M compute/v1beta14/compute-api.json View 1 2 3 4 chunks +3 lines, -271 lines 0 comments Download
M compute/v1beta14/compute-gen.go View 1 2 3 57 chunks +105 lines, -628 lines 0 comments Download
R compute/v1beta15/compute-api.json View 1 2 3 1 chunk +0 lines, -4856 lines 0 comments Download
R compute/v1beta15/compute-gen.go View 1 2 3 1 chunk +0 lines, -7991 lines 0 comments Download
M coordinate/v1/coordinate-api.json View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M coordinate/v1/coordinate-gen.go View 1 2 3 14 chunks +27 lines, -43 lines 0 comments Download
M customsearch/v1/customsearch-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M customsearch/v1/customsearch-gen.go View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
R datastore/v1beta1/datastore-api.json View 1 2 3 1 chunk +0 lines, -933 lines 0 comments Download
R datastore/v1beta1/datastore-gen.go View 1 2 3 1 chunk +0 lines, -988 lines 0 comments Download
M dfareporting/v1.1/dfareporting-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M dfareporting/v1.1/dfareporting-gen.go View 1 2 3 16 chunks +29 lines, -49 lines 0 comments Download
R dfareporting/v1.2/dfareporting-api.json View 1 2 3 1 chunk +0 lines, -1589 lines 0 comments Download
R dfareporting/v1.2/dfareporting-gen.go View 1 2 3 1 chunk +0 lines, -2170 lines 0 comments Download
M dfareporting/v1/dfareporting-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M dfareporting/v1/dfareporting-gen.go View 1 2 3 16 chunks +29 lines, -49 lines 0 comments Download
M discovery/v1/discovery-api.json View 1 2 3 9 chunks +27 lines, -27 lines 0 comments Download
M discovery/v1/discovery-gen.go View 1 2 3 16 chunks +46 lines, -30 lines 0 comments Download
M drive/v1/drive-api.json View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M drive/v1/drive-gen.go View 1 2 3 9 chunks +12 lines, -14 lines 0 comments Download
M drive/v2/drive-api.json View 1 2 3 15 chunks +3 lines, -28 lines 0 comments Download
M drive/v2/drive-gen.go View 1 2 3 70 chunks +87 lines, -208 lines 0 comments Download
M freebase/v1/freebase-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M freebase/v1/freebase-gen.go View 1 2 3 8 chunks +12 lines, -16 lines 0 comments Download
M freebase/v1sandbox/freebase-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M freebase/v1sandbox/freebase-gen.go View 1 2 3 8 chunks +12 lines, -16 lines 0 comments Download
M gan/v1beta1/gan-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M gan/v1beta1/gan-gen.go View 1 2 3 13 chunks +30 lines, -44 lines 0 comments Download
M groupsmigration/v1/groupsmigration-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M groupsmigration/v1/groupsmigration-gen.go View 1 2 3 5 chunks +10 lines, -6 lines 0 comments Download
M groupssettings/v1/groupssettings-api.json View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M groupssettings/v1/groupssettings-gen.go View 1 2 3 6 chunks +12 lines, -12 lines 0 comments Download
M latitude/v1/latitude-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M latitude/v1/latitude-gen.go View 1 2 3 10 chunks +11 lines, -19 lines 0 comments Download
M licensing/v1/licensing-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M licensing/v1/licensing-gen.go View 1 2 3 10 chunks +26 lines, -34 lines 0 comments Download
M mirror/v1/mirror-api.json View 1 2 3 4 chunks +5 lines, -7 lines 0 comments Download
M mirror/v1/mirror-gen.go View 1 2 3 31 chunks +28 lines, -97 lines 0 comments Download
M oauth2/v1/oauth2-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M oauth2/v1/oauth2-gen.go View 1 2 3 6 chunks +9 lines, -9 lines 0 comments Download
M oauth2/v2/oauth2-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M oauth2/v2/oauth2-gen.go View 1 2 3 6 chunks +9 lines, -9 lines 0 comments Download
M orkut/v2/orkut-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M orkut/v2/orkut-gen.go View 1 2 3 38 chunks +61 lines, -125 lines 0 comments Download
M pagespeedonline/v1/pagespeedonline-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M pagespeedonline/v1/pagespeedonline-gen.go View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
M plus/v1/plus-api.json View 1 2 3 3 chunks +4 lines, -6 lines 0 comments Download
M plus/v1/plus-gen.go View 1 2 3 17 chunks +25 lines, -45 lines 0 comments Download
M prediction/v1.2/prediction-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M prediction/v1.2/prediction-gen.go View 1 2 3 9 chunks +14 lines, -20 lines 0 comments Download
M prediction/v1.3/prediction-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M prediction/v1.3/prediction-gen.go View 1 2 3 9 chunks +14 lines, -20 lines 0 comments Download
M prediction/v1.4/prediction-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M prediction/v1.4/prediction-gen.go View 1 2 3 9 chunks +14 lines, -20 lines 0 comments Download
M prediction/v1.5/prediction-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M prediction/v1.5/prediction-gen.go View 1 2 3 11 chunks +15 lines, -25 lines 0 comments Download
M reseller/v1/reseller-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M reseller/v1/reseller-gen.go View 1 2 3 15 chunks +25 lines, -43 lines 0 comments Download
M reseller/v1sandbox/reseller-api.json View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M reseller/v1sandbox/reseller-gen.go View 1 2 3 15 chunks +25 lines, -43 lines 0 comments Download
M shopping/v1/shopping-api.json View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M shopping/v1/shopping-gen.go View 1 2 3 5 chunks +14 lines, -12 lines 0 comments Download
M siteverification/v1/siteverification-api.json View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M siteverification/v1/siteverification-gen.go View 1 2 3 11 chunks +14 lines, -22 lines 0 comments Download
M storage/v1beta1/storage-api.json View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M storage/v1beta1/storage-gen.go View 1 2 3 28 chunks +49 lines, -91 lines 0 comments Download
M storage/v1beta2/storage-api.json View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M storage/v1beta2/storage-gen.go View 1 2 3 38 chunks +66 lines, -128 lines 0 comments Download
M taskqueue/v1beta1/taskqueue-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M taskqueue/v1beta1/taskqueue-gen.go View 1 2 3 8 chunks +21 lines, -25 lines 0 comments Download
M taskqueue/v1beta2/taskqueue-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M taskqueue/v1beta2/taskqueue-gen.go View 1 2 3 11 chunks +29 lines, -39 lines 0 comments Download
M tasks/v1/tasks-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M tasks/v1/tasks-gen.go View 1 2 3 17 chunks +26 lines, -48 lines 0 comments Download
M translate/v2/translate-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M translate/v2/translate-gen.go View 1 2 3 6 chunks +9 lines, -9 lines 0 comments Download
M urlshortener/v1/urlshortener-api.json View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M urlshortener/v1/urlshortener-gen.go View 1 2 3 6 chunks +9 lines, -9 lines 0 comments Download
M webfonts/v1/webfonts-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M webfonts/v1/webfonts-gen.go View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
M youtube/v3/youtube-api.json View 1 2 3 37 chunks +350 lines, -390 lines 0 comments Download
M youtube/v3/youtube-gen.go View 1 2 3 85 chunks +346 lines, -630 lines 0 comments Download
M youtubeanalytics/v1/youtubeanalytics-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M youtubeanalytics/v1/youtubeanalytics-gen.go View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
M youtubeanalytics/v1beta1/youtubeanalytics-api.json View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M youtubeanalytics/v1beta1/youtubeanalytics-gen.go View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 12
adg
Hello campoy@google.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/google-api-go-client
12 years, 12 months ago (2013-06-03 01:40:02 UTC) #1
bradfitz
LGTM but would prefer the commit reference a bug number with more details On Sun, ...
12 years, 12 months ago (2013-06-03 05:20:33 UTC) #2
adg
added "Update issue 34". https://code.google.com/p/google-api-go-client/issues/detail?id=34
12 years, 12 months ago (2013-06-03 05:41:29 UTC) #3
bradfitz
On Sun, Jun 2, 2013 at 10:40 PM, Andrew Gerrand <adg@golang.org> wrote: > added "Update ...
12 years, 12 months ago (2013-06-03 05:51:28 UTC) #4
adg
On 3 June 2013 15:51, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Isn't that exactly what we ...
12 years, 12 months ago (2013-06-03 05:53:28 UTC) #5
adg
*** Submitted as https://code.google.com/p/google-api-go-client/source/detail?r=5d818df85e09 *** undo CL 9672043 / 38d1b743fd69 I have had reports that ...
12 years, 12 months ago (2013-06-03 06:00:35 UTC) #6
campoy
I tested it with other APIs too and got emails from go nuts members confirming ...
12 years, 12 months ago (2013-06-05 00:43:25 UTC) #7
ikai
I tried with the API client after the rollback and it worked. I didn't know ...
12 years, 12 months ago (2013-06-05 15:45:15 UTC) #8
bradfitz
Oh, I bet the issue is Go 1.0. I recall Opaque changes in Go 1.1 ...
12 years, 12 months ago (2013-06-05 15:48:44 UTC) #9
ikai
It should be your team's call. In general I'm inclined to say no, but as ...
12 years, 12 months ago (2013-06-05 20:00:40 UTC) #10
adg
As soon as Go 1.1 is generally available on App Engine, we should require all ...
12 years, 12 months ago (2013-06-05 23:31:32 UTC) #11
ikai
12 years, 12 months ago (2013-06-06 14:40:09 UTC) #12
SGTM. I can even include a check for Go 1.1 if you're going to put Opaque
back in. Is there a better way to check for 1.1 than
http://golang.org/pkg/runtime/#Version?


--
Ikai Lan | *YouTube* Developer Relations
Google New York | 76 Ninth Ave, New York, NY, 10011 | +1 212-565-0000


On Wed, Jun 5, 2013 at 7:31 PM, Andrew Gerrand <adg@golang.org> wrote:

> As soon as Go 1.1 is generally available on App Engine, we should require
> all users to run Go 1.1 to use the google-api-go-client. I would even be
> inclined to add a log message on startup to that effect.
>
>
> On 6 June 2013 06:00, Ikai Lan <ikai@google.com> wrote:
>
>> It should be your team's call. In general I'm inclined to say no, but as
>> of right now this change will impact zero of our existing developers, and
>> you guys have a better gauge on whether Go developers care or not that they
>> have to upgrade to use Apiary.
>>
>>
>> --
>> Ikai Lan | *YouTube* Developer Relations
>> Google New York | 76 Ninth Ave, New York, NY, 10011 | +1 212-565-0000
>>
>>
>> On Wed, Jun 5, 2013 at 11:48 AM, Brad Fitzpatrick
<bradfitz@golang.org>wrote:
>>
>>> Oh, I bet the issue is Go 1.0.  I recall Opaque changes in Go 1.1 which
>>> probably makes this work.
>>>
>>> Should we require Go 1.1 for google-api-go-client?
>>>
>>>
>>>
>>> On Wed, Jun 5, 2013 at 8:44 AM, Ikai Lan <ikai@google.com> wrote:
>>>
>>>> I tried with the API client after the rollback and it worked. I didn't
>>>> know how to upgrade the API client using "go get"; it didn't seem to do
>>>> anything, even with the -a flag so I just did an "rm -rf" in the
>>>> $GOROOT/src/pkg directory.
>>>>
>>>> The report from the error is in the last email I sent you. The issue is
>>>> that this is the working request (after rollback):
>>>>
>>>> GET /youtube/v3/channels?mine=true&alt=json&part=contentDetails HTTP/1.1
>>>> Host: www.googleapis.com
>>>> User-Agent: google-api-go-client/0.5
>>>> Authorization: Bearer
>>>> ya29.AHES6ZSJ1rNPH20SQtkud_aY6pNc3Tajf-ivVdquFqflgL7x
>>>>
>>>> Here is what the client was doing pre-rollback:
>>>>
>>>> POST //
>>>> www.googleapis.com/upload/drive/v2/files?uploadType=multipart&alt=json
>>>>  HTTP/1.1
>>>> Host: www.googleapis.com
>>>> User-Agent: google-api-go-client/0.5
>>>> Content-Length: 23301
>>>> Authorization: Bearer
>>>> ya29.AHES6ZSzpiJ0HuHW-8B86Q96ofG5OoW6W5AMLyiN-HkvMYXo996eAg
>>>>
>>>> The only difference the APIs are different is because I'm writing these
>>>> really quickly because I don't have my Drive sample open, but the key
>>>> difference is in the first line. Pre-rollback, the clients were prefixing
//
>>>> www.googleapis.com/ to the URI, which was breaking the Apiary call. I
>>>> think the issue comes from here:
>>>>
>>>>
>>>>
https://code.google.com/p/google-api-go-client/source/diff?spec=svn5d818df85e...
>>>>
>>>> See line 2430. Code that doesn't work:
>>>>
>>>>  req.URL.Opaque = "//" + req.URL.Host + req.URL.Path
>>>> This appears a few more times in the version that is broken. I'm using
>>>> Go version 1.0.3 and the version of Goauth recent as of a week ago.
>>>>
>>>>
>>>> --
>>>> Ikai Lan | *YouTube* Developer Relations
>>>> Google New York | 76 Ninth Ave, New York, NY, 10011 | +1 212-565-0000
>>>>
>>>>
>>>> On Tue, Jun 4, 2013 at 8:43 PM, Francesc Campoy Flores <
>>>> campoy@google.com> wrote:
>>>>
>>>>> I tested it with other APIs too and got emails from go nuts members
>>>>> confirming it worked for their code too.
>>>>>
>>>>> Could you send the report for the error? I'm curious about it.
>>>>> On Jun 2, 2013 10:53 PM, "Andrew Gerrand" <adg@golang.org> wrote:
>>>>>
>>>>>>
>>>>>> On 3 June 2013 15:51, Brad Fitzpatrick <bradfitz@golang.org> wrote:
>>>>>>
>>>>>>> Isn't that exactly what we were skeptical of during the code review?
>>>>>>
>>>>>>
>>>>>> Yes. But Francesc reported that it works. Maybe it does work for
>>>>>> Storage (the API he was testing), and doesn't work for Drive? I await
>>>>>> Francesc's commentary on this.
>>>>>>
>>>>>>
>>>>
>>>
>>
>
Sign in to reply to this message.

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