GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: ImmutableSet converted to List for Impersonated Credentials by dheerajpanangat · Pull Request #732 · googleapis/google-auth-library-java

This repository was archived by the owner on May 12, 2026. It is now read-only.

Conversation

@dheerajpanangat

@dheerajpanangat dheerajpanangat commented Sep 8, 2021

Copy link
Copy Markdown
Contributor

As part of BigQueryOptions or StorageOptions the SCOPES is defined as an ImmutableSet.
When using an Impersonated Account, it fails when trying to get service, as the SCOPES are immutableSet and the previous code tries to cast it to List directly and fails.
Adding a fix for the same.

Fixes #731 ☕️

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dheerajpanangat
fix: ImmutableSet converted to List for Impersonated Credentials
536df4d
As part of BigQueryOptions the SCOPES is defined as an ImmutableSet.
When using an Impersonated Account, it fails when trying to get service as the SCOPES are immutableSet and the previous code tries to cast it to List directly and fails.
Adding a fix for the same
@dheerajpanangat
dheerajpanangat requested a review from a team September 8, 2021 10:58
@google-cla

google-cla Bot commented Sep 8, 2021

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
  • It's possible we don't have your GitHub username or you're using a different email address on your commit. Check your existing CLA data and verify that your email is set on your git commits.
Corporate signers
  • Your company has a Point of Contact who decides which employees are authorized to participate. Ask your POC to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the Google project maintainer to go/cla#troubleshoot (Public version).
  • The email used to register you as an authorized contributor must be the email used for the Git commit. Check your existing CLA data and verify that your email is set on your git commits.
  • The email used to register you as an authorized contributor must also be attached to your GitHub account.

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-cla google-cla Bot added the cla: no This human has *not* signed the Contributor License Agreement. label Sep 8, 2021
@dheerajpanangat dheerajpanangat mentioned this pull request Sep 8, 2021
BigQuery/Storage - ImpersonatedCredentials fails when trying to get Service #731
Closed
@dheerajpanangat

dheerajpanangat commented Sep 28, 2021

Copy link
Copy Markdown
Contributor Author

@googlebot I signed it!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-cla google-cla Bot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Sep 28, 2021
chingor13
chingor13 suggested changes Sep 29, 2021
View reviewed changes

@chingor13 chingor13 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this. Can you add a simple test for this failure so that we don't regress in the future?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dheerajpanangat reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Neenu1995 and others added 5 commits September 30, 2021 10:31
@Neenu1995
Merge branch 'main' into master
1dbbcf6
@dheerajpanangat
Merge branch 'main' into master
7960d5f
@dheerajpanangat
Merge branch 'main' into master
ca2ce2d
@dheerajpanangat
fix: ImmutableSet converted to List for Impersonated Credentials
8fda76e
Adding JUnit Test Cases for the change
@dheerajpanangat
fix: ImmutableSet converted to List for Impersonated Credentials
d9a27a1
Adding JUnit Test Cases for the change
@dheerajpanangat

dheerajpanangat commented Oct 19, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Thanks for submitting this. Can you add a simple test for this failure so that we don't regress in the future?

@chingor13 Added the JUnit Test case.
Thanks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dheerajpanangat
dheerajpanangat requested a review from chingor13 October 25, 2021 15:48
dheerajpanangat added 2 commits October 25, 2021 21:18
@dheerajpanangat
Merge branch 'main' into master
29a2701
@dheerajpanangat
Merge branch 'main' into master
f9e5249
@TimurSadykov
TimurSadykov self-requested a review November 22, 2021 08:45
dheerajpanangat added 3 commits November 22, 2021 17:18
@dheerajpanangat
Merge branch 'main' into master
4341c7d
@dheerajpanangat
Merge branch 'main' into master
91394bb
@dheerajpanangat
Merge branch 'main' into master
e6c9d98
TimurSadykov
TimurSadykov suggested changes Feb 3, 2022
View reviewed changes

@TimurSadykov TimurSadykov left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, sorry for delay, some minor comments and we can get it done. Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@TimurSadykov
TimurSadykov requested review from a team and Neenu1995 and removed request for a team February 3, 2022 18:24
dheerajpanangat added 3 commits March 3, 2022 15:52
@dheerajpanangat
Merge branch 'main' into master
c7a47c2
@dheerajpanangat
fix: ImmutableSet converted to List for Impersonated Credentials
0f2b024
Changes made as per the code review comments
@dheerajpanangat
fix: ImmutableSet converted to List for Impersonated Credentials
e5683f1
Changes made as per the code review comments
@dheerajpanangat
dheerajpanangat requested a review from TimurSadykov March 3, 2022 10:31
Timur Sadykov
Merge branch 'main' into master
291918b
TimurSadykov
TimurSadykov approved these changes Mar 10, 2022
View reviewed changes

@TimurSadykov TimurSadykov left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@TimurSadykov

TimurSadykov commented Mar 10, 2022

Copy link
Copy Markdown

@dpanangat hey, thanks for updates, please fix the linter failure and we should be good to go. To do that you need to run the "mvn com.coveo:fmt-maven-plugin:format" command and push resulted format changes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@TimurSadykov TimurSadykov mentioned this pull request Mar 10, 2022
ClassCastException in ImpersonatedCredentials.createScoped #887
Closed
@dheerajpanangat
Merge branch 'main' into master
b97e734
chingor13
chingor13 approved these changes Mar 15, 2022
View reviewed changes
Timur Sadykov added 2 commits March 15, 2022 16:33
Timur Sadykov
Merge branch 'main' into master
cf8c66c
Timur Sadykov
format fixes
d6d8183
@TimurSadykov TimurSadykov added kokoro:force-run Add this label to force Kokoro to re-run the tests. automerge Merge the pull request once unit tests and other checks pass. labels Mar 15, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 15, 2022
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit 7dcd549 into googleapis:main Mar 15, 2022
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Mar 15, 2022
@release-please release-please Bot mentioned this pull request Mar 15, 2022
chore(main): release 1.6.0 #877
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request Mar 16, 2022
@release-please
chore(main): release 1.6.0 (#877)
463ac04
🤖 I have created a release *beep* *boop*
---


## [1.6.0](v1.5.3...v1.6.0) (2022-03-15)


### Features

* Add AWS Session Token to Metadata Requests ([#850](#850)) ([577e9a5](577e9a5))


### Bug Fixes

* ImmutableSet converted to List for Impersonated Credentials ([#732](#732)) ([7dcd549](7dcd549))
* update library docs ([#868](#868)) ([a081015](a081015))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@release-please release-please Bot mentioned this pull request Aug 11, 2022
chore(main): release 1.11.0 #974
Merged
chingor13 pushed a commit to googleapis/google-cloud-java that referenced this pull request Mar 12, 2026
@release-please
chore(main): release 1.6.0 (#877)
3facd1c
🤖 I have created a release *beep* *boop*
---


## [1.6.0](googleapis/google-auth-library-java@v1.5.3...v1.6.0) (2022-03-15)


### Features

* Add AWS Session Token to Metadata Requests ([#850](googleapis/google-auth-library-java#850)) ([0713bf2](googleapis/google-auth-library-java@0713bf2))


### Bug Fixes

* ImmutableSet converted to List for Impersonated Credentials ([#732](googleapis/google-auth-library-java#732)) ([8f11708](googleapis/google-auth-library-java@8f11708))
* update library docs ([#868](googleapis/google-auth-library-java#868)) ([d964089](googleapis/google-auth-library-java@d964089))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@Neenu1995 Neenu1995 Awaiting requested review from Neenu1995
2 more reviewers
@chingor13 chingor13 chingor13 approved these changes
@TimurSadykov TimurSadykov TimurSadykov approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BigQuery/Storage - ImpersonatedCredentials fails when trying to get Service

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@dheerajpanangat @TimurSadykov @chingor13 @kokoro-team @Neenu1995
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.