Closed jay-eleven closed 2 years ago
Traps fixed in 6.20.08. Rerun test.
$ gam user testsimple create drivefile drivefilename "Test file"
User: testsimple@domain.com, Drive File: Test file(1L_ZOtXxXkqXO-3qOeSNcuK0lAyQ-Wxyz), Created
$ gam user testsimple create teamdrive TEST_TEAMDRIVE
User: testsimple@domain.com, Shared Drive Name: TEST_TEAMDRIVE, Shared Drive ID: 0ANI3g0zpB8wHUk0XYZ, Created
$ gam user testsimple show drivefileacl teamdriveid 0ANI3g0zpB8wHUk0XYZ fields role
User: testsimple@domain.com, Show 1 Drive File/Folder
Drive File/Folder ID: 0ANI3g0zpB8wHUk0XYZ, Show 1 Permittee
Permission
role: organizer
$ gam user testsimple move drivefile 1L_ZOtXxXkqXO-3qOeSNcuK0lAyQ-Wxyz teamdriveparent "TEST_TEAMDRIVE"
User: testsimple@domain.com, Move 1 Drive File/Folder
User: testsimple@domain.com, Drive File: Test file, Moved to: Test file, Drive Folder ID: 0ANI3g0zpB8wHUk0XYZ
Does user jay have the following role: Team Drive Admin Ability to move folders to team drives
jay@cloudshell:~$ gam show admins user jay
Show 4 Role Assignment IDs
Role Assignment ID: 4409958334464080 (1/4)
roleId: 4409958334464001
role: _SEED_ADMIN_ROLE
....
User jay is Super Admin
jay@cloudshell:~$ ./updategam.sh
jay@cloudshell:~$ gam user jay move drivefile name "Test file" teamdriveparent "TEST_TEAMDRIVE"
Getting all Drive Files/Folders that match query ('me' in owners and name = 'Test file') for jay@d.com
Got 1 Drive File/Folder that matched query ('me' in owners and name = 'Test file') for jay@d.com...
User: jay@d.com, Move 1 Drive File/Folder
User: jay@d.com, Drive File: Test file, Moved to: Test file, Drive Folder ID: 0AC0mjAOeVVffUk9PVA
Works!
Thanks Ross!
Hi Ross!!
I've noticed that moving a file to a shared drive suddenly stopped working raising a trap:
Steps to reproduce:
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "init.py", line 62013, in ProcessGAMCommand File "init.py", line 49218, in moveDriveFile AttributeError: module 'gamlib.glgapi' has no attribute 'fileOwnerNotMemberOfSharedDrive'