1
mirror of https://github.com/rclone/rclone synced 2024-11-23 00:06:55 +01:00
rclone/backend/drive
Nick Craig-Wood d3b0bed091 drive: make sure invalid auth for teamdrives always reports an error
For some reason Google doesn't return an error if you use a service
account with the wrong permissions to list a team drive.  This gives
the user the false impression that the drive is empty.

This change:
- calls teamdrives get on rclone about
- calls teamdrives get on a listing of the root which returned no entries

These will both detect a team drive which has the incorrect auth and
workaround the issue.

Fixes: #3763
See: https://forum.rclone.org/t/rclone-missing-error-code-when-sas-have-no-permission/13086
See: https://forum.rclone.org/t/need-need-bug-verification-rclone-about-doesnt-work-on-teamdrives-empty-output/13105
2019-11-28 10:51:17 +00:00
..
test drive: add --drive-import-formats 2018-09-25 15:20:23 +01:00
drive_internal_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
drive_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
drive.go drive: make sure invalid auth for teamdrives always reports an error 2019-11-28 10:51:17 +00:00
upload.go Add context to all http.NewRequest #3257 2019-09-09 23:27:07 +01:00