googleapis / googleapis/google-cloud-java

[sdk-platform-java] host is not updated when universe domain is specified

Open
#12,429 0 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: bug
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

When a client specifies a universe domain, the `host` value does not get automatically updated to match. For example, if I create a storage client:

`Storage storage = StorageOptions.grpc().setUniverseDomain("my-universe-domain.com").build().getService();`

Then
`storage.getOptions().getUniverseDomain()` properly returns `my-universe-domain`, but `storage.getOptions.getHost()` just returns `www.googleapis.com`, when it should return `https://storage.my-universe-domain.com`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.