RandomSec/extensions/gdata/src/com/google/refine/extension/gdata
Matías García Isaía 282cfa6e93
Fix null precondition while importing a Google Sheet (#3801)
`Credential.Builder()` requires a non-null `AccessMethod`[0], and we were sending
it `null` when actually importing the spreadsheet.

This commit defaults to the same `BearerToken.authorizationHeaderAccessMethod()` that the
`getDriveService()` function was already using.

[0]: https://github.com/googleapis/google-oauth-java-client/blob/v1.31.0/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java#L636-L638

Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
2021-06-28 09:35:05 +02:00
..
DeAuthorizeCommand.java Migrate gdata extension importers to Jackson 2018-11-30 19:23:08 +09:00
GDataImporter.java Refactor importer APIs - Fixes #2963 (#2978) 2020-07-23 18:36:14 +02:00
GDataImportingController.java Restore copyrights (#2633) 2020-05-22 06:01:15 +02:00
GoogleAPIExtension.java Fix null precondition while importing a Google Sheet (#3801) 2021-06-28 09:35:05 +02:00
logo-openrefine-550.png Load GDrive icon from local resource, not Github (#2689) 2020-06-14 09:46:38 +02:00
SpreadsheetSerializer.java Improve Google Sheets upload (#2784) 2020-06-25 08:18:28 +02:00
TokenCookie.java exclude test-out 2018-02-25 12:00:40 -05:00
UploadCommand.java Correct mimetype for Google Drive project exports (#2829) 2020-07-03 14:24:25 +02:00