mirror of
https://github.com/apache/druid.git
synced 2025-02-11 20:45:01 +00:00
GCP allows bucket names to contain underscores. When a location in such a bucket is mapped to `java.net.URI`, `URI.getHost()` returns null. `URI.getHost()` is used as the bucket name in `CloudObjectLocation`, leading to an NPE. This commit uses `URI.getAuthority()` as the bucket name if `URI.getHost()` is null.