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 — Remove reflection to get App Engine credentials and project ID · Issue #763 · googleapis/google-cloud-java

Remove reflection to get App Engine credentials and project ID #763

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove reflection to get App Engine credentials and project ID#763
Copy link
Assignees
ajkannan
Labels
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@ajkannan
ajkannan
opened on Mar 18, 2016
Issue body actions

In production App Engine (standard runtime), reflection to get project ID and credentials won't work unless the user depends on appengine-api-1.0-sdk, even though the necessary jars are already provided by the runtime. To get around this, we should declare a "provided"-scoped dependency on that library in gcloud-java-core and use the AppIdentityService directly instead of through reflection to get credentials and the project ID.

Activity

  1. ajkannan
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    packaging
    on Mar 18, 2016
  2. ajkannan
    self-assigned this
    on Mar 18, 2016
  3. ajkannan commented on Mar 21, 2016

    @ajkannan
    ajkannan
    on Mar 21, 2016
    Author
    More actions

    Update: this won't fix the issue. The SDK dependency is used to set whether the APIs are available on app engine or not in the app.yaml generated for deployment. Thus, when using App Engine (standard environment), users should include the SDK dependency in their pom.xml files.

    I'll keep this issue open because we can still implement the suggestion above for minor performance improvements.

  4. ajkannan commented on Apr 15, 2016

    @ajkannan
    ajkannan
    on Apr 15, 2016
    Author
    More actions

    Closing this as the benefits are quite small compared to the effort required. Any CPU performance benefit from avoiding reflection is dwarfed by the time it takes for the subsequent RPC call to complete.

  5. ajkannan
    closed this as completedon Apr 15, 2016
  6. ajkannan
    removed their assignment
    on Apr 15, 2016
  7. JustinBeckwith
    assigned
    ajkannan
    on Feb 1, 2021
  8. github-actions
    added 3 commits that reference this issue on Jun 29, 2022

    chore(main): release 1.3.1-SNAPSHOT (googleapis#763)

    04c785d

    chore: Disable CLIRR checks on releas (#1474) (#763)

    4b77553

    chore(main): release 2.2.1-SNAPSHOT (#763)

    eeb2885
  9. github-actions
    added a commit that references this issue on Aug 9, 2022

    chore(main): release 0.123.3-SNAPSHOT (#763)

    0bbe105
  10. github-actions
    added a commit that references this issue on Sep 15, 2022

    chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…

    8f8ef93
  11. github-actions
    added 3 commits that reference this issue on Oct 4, 2022

    chore(main): release 2.5.5 (#780)

    91415a4

    chore(main): release 2.2.7-SNAPSHOT (#763)

    d7a1eb6

    chore(main): release 2.3.0 (#748)

    442153c
  12. github-actions
    added a commit that references this issue on Nov 9, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    14c0812
  13. suztomo
    added 3 commits that reference this issue on Feb 1, 2023

    deps: update dependency com.google.api.grpc:proto-google-iam-v1 to v1…

    5385880

    deps: update gax.version to v2.18.6 (#763)

    84b81e9

    chore(main): release 3.0.0 (#740)

    f0625b0
  14. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v25.…

    1fe8ae6
  15. chingor13
    added 2 commits that reference this issue on Jan 22, 2026

    feat: support readTime in Datastore query splitter. (#763)

    61758e0

    chore(main): release 2.9.0 (#772)

    f29c5c9
  16. chingor13
    added 2 commits that reference this issue on Feb 24, 2026

    chore: migrate tests in oauth2_http module from JUnit4 to JUnit5 - se…

    d045247

    refactor: Revert JUnit5 to JUnit4 (#969)

    53355a7
  17. chingor13
    added 2 commits that reference this issue on Mar 12, 2026

    chore: migrate tests in oauth2_http module from JUnit4 to JUnit5 - se…

    9ce44be

    refactor: Revert JUnit5 to JUnit4 (#969)

    6279d6e
  18. suztomo
    added a commit that references this issue on Mar 30, 2026

    test(deps): update dependency org.mockito:mockito-core to v4.1.0 (#763)

    931af82
  19. lqiu96
    added a commit that references this issue on Apr 1, 2026

    test(deps): update dependency org.mockito:mockito-core to v4.1.0 (#763)

    7c4d16b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ajkannan
    ajkannan

Labels

type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.