googleapis / googleapis/google-api-java-client
GCE_METADATA_HOST env does not work with IPv6 addresses
Open
priority: p3
type: bug
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 772
- Avg merge
- 1h 44m
- Merged PRs (30d)
- 1
Description
#### Steps to reproduce
1. Set custom GCE_METADATA_HOST env variable to IPv6 address, i.e. `::1`
2. Observe application is trying to call invalid URL `http://::1` instead of expected `http://[::1]`
https://github.com/googleapis/google-api-java-client/blob/7ccb2fc36caf7ae448a697409eae0fa1ca442a99/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/OAuth2Utils.java#L108
Contributor guide
Assessment
This issue has not been assessed yet.