googleapis / googleapis/google-api-java-client

GCE_METADATA_HOST env does not work with IPv6 addresses

未关闭
#2,591 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
priority: p3 type: bug
主要语言
Java
星标
1.5k
派生
772
平均合并
1 小时 44 分钟
30 天内合并 PR
1

描述

#### 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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。