Fixed bug introduced in 6.67.02 in gam <UserTypeEntity> claim ownership that caused a trap.

This commit is contained in:
Ross Scroggs
2024-01-02 12:32:13 -08:00
parent 7596215bbe
commit 293e1c1d9a
11 changed files with 49 additions and 16 deletions

View File

@@ -2,6 +2,10 @@
Merged GAM-Team version
6.67.03
Fixed bug introduced in 6.67.02 in `gam <UserTypeEntity> claim ownership` that caused a trap.
6.67.02
Added option `skipids <DriveFileEntity>` to `gam <UserTypeEntity> copy drivefile` that handles special cases

View File

@@ -57198,7 +57198,6 @@ def moveDriveFile(users):
i, count, users = getEntityArgument(users)
for user in users:
i += 1
origUser = user
user, drive, jcount = _validateUserGetFileIDs(user, i, count, fileIdEntity, entityType=Ent.DRIVE_FILE_OR_FOLDER)
if jcount == 0:
continue
@@ -59257,7 +59256,7 @@ def claimOwnership(users):
for fileId in fileIdEntity['list']:
j += 1
filesToClaim = {}
kVlist = [Ent.USER, user, Ent.DRIVE_FILE_OR_FOLDER, fileId]
kvList = [Ent.USER, user, Ent.DRIVE_FILE_OR_FOLDER, fileId]
if buildTree:
fileEntry = fileTree.get(fileId)
if not fileEntry: