googleapis / googleapis/google-api-java-client
GCE_METADATA_HOST env does not work with IPv6 addresses
Offen
priority: p3
type: bug
- Vorherrschende Sprache
- Java
- Sterne
- 1.5k
- Forks
- 772
- Ø Merge
- 1 Std. 44 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
#### 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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.