From 03bff5df8cbe44ffdf0baf1070d4928897d6edfd Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Sat, 30 Aug 2025 15:01:11 -0700 Subject: [PATCH] Fixed bug where specifying a `` as `id:1234567890` could lead to errors like this: ``` ERROR: 400: invalidArgument - Resource name has invalid email. ``` --- src/GamUpdate.txt | 7 +++++++ src/gam/__init__.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index 1c38bfe9..eec57b48 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,10 @@ +7.19.03 + +Fixed bug where specifying a `` as `id:1234567890` could lead to errors like this: +``` +ERROR: 400: invalidArgument - Resource name has invalid email. +``` + 7.19.02 Update `gam info user ` to eliminate 5 second delay when getting license info. diff --git a/src/gam/__init__.py b/src/gam/__init__.py index b122a901..36cd4941 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.19.02' +__version__ = '7.19.03' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' #pylint: disable=wrong-import-position @@ -5807,7 +5807,7 @@ def convertUIDtoEmailAddress(emailAddressOrUID, cd=None, emailTypes=None, normalizedEmailAddressOrUID = normalizeEmailAddressOrUID(emailAddressOrUID, ciGroupsAPI=ciGroupsAPI) if normalizedEmailAddressOrUID.startswith(NON_EMAIL_MEMBER_PREFIXES): return normalizedEmailAddressOrUID - email, _ = convertUIDtoEmailAddressWithType(emailAddressOrUID, cd, emailTypes, + email, _ = convertUIDtoEmailAddressWithType(emailAddressOrUID, cd, None, emailTypes, checkForCustomerId, ciGroupsAPI, aliasAllowed) return email