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 — LocalDatastoreHelper fails to start if used in an environment that cannot access the "gcd" GCS bucket · Issue #376 · googleapis/java-datastore

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

LocalDatastoreHelper fails to start if used in an environment that cannot access the "gcd" GCS bucket #376

Copy link
Copy link
Closed
Closed
LocalDatastoreHelper fails to start if used in an environment that cannot access the "gcd" GCS bucket#376
#492 (+2)
Copy link
Labels
api: datastoreIssues related to the googleapis/java-datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@aristide-n
aristide-n
opened on Apr 2, 2021
Issue body actions

Is your feature request related to a problem? Please describe.
When attempting to use the Downloadable emulator, LocalDatastoreHelper downloads from a hardcoded URL to the file in the "gcd" GCS bucket:

java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/testing/LocalDatastoreHelper.java

Line 75 in 1651b88

EMULATOR_URL = new URL("http://storage.googleapis.com/gcd/tools/" + FILENAME);

When used in an environment that cannot access the "gcd" GCS bucket, LocalDatastoreHelper fails to start (e.g. when running in a GCE VM protected by a VPC-SC perimeter).

Describe the solution you'd like
If I could provide the emulator file URL in an environment variable, I could copy the file from the "gcd" bucket into another bucket that is accessible from the restricted environment and use that URL.

Describe alternatives you've considered
N/A

Activity

  1. product-auto-label
    added
    api: datastoreIssues related to the googleapis/java-datastore API.
    on Apr 2, 2021
  2. aristide-n
    added a commit that references this issue on Apr 2, 2021

    fix: LocalDatastoreHelper uses DATASTORE_EMULATOR_URL environment var…

    dac49b2
  3. aristide-n
    closed this as completedin aristide-n/java-datastore#1on Apr 2, 2021
  4. aristide-n
    reopened this on Apr 2, 2021
  5. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 3, 2021
  6. dmahugh
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Apr 9, 2021
  7. dmahugh
    assigned
    kolea2
    on Apr 9, 2021
  8. kolea2
    removed their assignment
    on Apr 9, 2021
  9. kolea2
    removed
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Apr 9, 2021
  10. aristide-n commented on Apr 13, 2021

    @aristide-n
    aristide-n
    on Apr 13, 2021
    ContributorAuthor
    More actions

    I'm testing out a fix for this, I'll add a PR soon

  11. aristide-n
    added 3 commits that reference this issue on May 9, 2021

    fix: LocalDatastoreHelper uses DATASTORE_EMULATOR_URL and ACCESS_TOKE…

    86a9ad8

    fix: LocalDatastoreHelper uses DATASTORE_EMULATOR_URL and ACCESS_TOKE…

    386cd84

    fix: LocalDatastoreHelper uses DATASTORE_EMULATOR_URL and ACCESS_TOKE…

    e739998
  12. aristide-n
    added 5 commits that reference this issue on Aug 8, 2021

    feat: support downloading an emulator from an access controlled URL

    This issue will close once commit 904a5cd is merged into the 'master' branch.
    904a5cd

    feat: support downloading an emulator from an access controlled URL

    This issue will close once commit 09db6fa is merged into the 'master' branch.
    09db6fa

    feat: support downloading an emulator from an access controlled URL

    This issue will close once commit 1cb4002 is merged into the 'master' branch.
    1cb4002

    feat: support overriding the emulator download URL in LocalDatastoreH…

    This issue will close once commit 440ab13 is merged into the 'master' branch.
    440ab13

    feat: support downloading an emulator from an access controlled URL

    This issue will close once commit fd7c0e0 is merged into the 'master' branch.
    fd7c0e0
  13. lesv
    closed this as completedin java-core#513on Aug 16, 2021
  14. lesv
    added a commit that references this issue on Aug 16, 2021

    feat: support downloading an emulator from an access controlled URL (#…

    This issue will close once commit f42a707 is merged into the 'main' branch.
    f42a707
  15. lesv
    reopened this on Aug 16, 2021
  16. lesv commented on Aug 16, 2021

    @lesv
    lesv
    on Aug 16, 2021
    Contributor
    More actions

    #492 is required before closing this.

  17. gcf-merge-on-green
    closed this as completedin #492on Aug 26, 2021
  18. gcf-merge-on-green
    added 2 commits that reference this issue on Aug 26, 2021

    feat: support overriding the emulator download URL in LocalDatastoreH…

    This issue will close once commit 76397bf is merged into the 'main' branch.
    76397bf

    chore: release 2.1.0 (#519)

    This issue will close once commit e4da914 is merged into the 'main' branch.
    e4da914
  19. suztomo
    added a commit that references this issue on Mar 21, 2023

    feat: support downloading an emulator from an access controlled URL (#…

    This issue will close once commit 0eeb60f is merged into the 'main' branch.
    0eeb60f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: datastoreIssues related to the googleapis/java-datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    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.