-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExternalAccountCredentials serialization is broken #1347
Comments
BigTailWolf
added a commit
to BigTailWolf/google-auth-library-java
that referenced
this issue
Jan 24, 2024
4 tasks
BigTailWolf
added a commit
that referenced
this issue
Jan 24, 2024
…1358) * fix: Issue #1347: ExternalAccountCredentials serialization is broken * fix test * fix lint * Update oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java Co-authored-by: Leo <39062083+lsirac@users.noreply.github.com> * address the removal of redaundant public * move the getter to test class --------- Co-authored-by: Leo <39062083+lsirac@users.noreply.github.com>
BigTailWolf
added a commit
that referenced
this issue
Jan 24, 2024
BigTailWolf
added a commit
that referenced
this issue
Jan 25, 2024
BigTailWolf
added a commit
that referenced
this issue
Feb 6, 2024
…ation is…" This reverts commit 5a2d943.
Any chance a new release can be created? It's been quite some time since the fix was created. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ExternalAccountCredentials
hasprotected transient HttpTransportFactory transportFactory
, which becomes null if this object gets serialized & restored. The design intent of this appears to be described in #67, but the implementation inExternalAccountCredentials
lacks the crucial part, quoted below:The same problem has been seen and fixed in #132. I believe we need to bring the same fix to
ExternalAccountCredentials
More details
NPE happens at the following call site:
google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/AwsCredentials.java
Line 151 in 98fc7e1
Full stack trace below:
The text was updated successfully, but these errors were encountered: