This repository was archived by the owner on Dec 3, 2023. It is now read-only.
Description The new IAM deleted user syntax is not supported by com.google.cloud.Identity:
https://cloud.google.com/iam/docs/policies#handle-deleted-members
Environment details
Affects the Core library and all dependant libraries
OS type and version: any
Java version: any
google-cloud-core version(s): any
Steps to reproduce
Try to parse a deleted user string with Identity.valueOf
This results either to a stacktrace (1.74.0 and lower) or a DELETED identity type (1.75.0 and higher)
Code example
Identity identity = Identity .valueOf ("deleted:user:donald@example.com?uid=234567890123456789012" );
System .out .println ("type = " + identity .getType ());
System .out .println ("value = " + identity .getValue ());
Stack trace
1.74.0 and lower
java.lang.IllegalArgumentException: Illegal identity string: "deleted:user:donald@example.com?uid=234567890123456789012"
1.75.0 and higher
type = DELETED
value = user:donald@example.com?uid=234567890123456789012
The "fix" is caused by an unrelated change: 24667e5
External references such as API reference guides
https://cloud.google.com/iam/docs/policies#handle-deleted-members
Reactions are currently unavailable
The new IAM deleted user syntax is not supported by com.google.cloud.Identity:
https://cloud.google.com/iam/docs/policies#handle-deleted-members
Environment details
Steps to reproduce
Code example
Stack trace
1.74.0 and lower
1.75.0 and higher
The "fix" is caused by an unrelated change: 24667e5
External references such as API reference guides
https://cloud.google.com/iam/docs/policies#handle-deleted-members