Open lbergelson opened 7 years ago
Best way to fix this is via https://github.com/broadinstitute/gatk/issues/958
Note that the bug title is a bit misleading: is says "BucketUtils.isCloudStorageUrl
throws" but the exception is actually thrown upstream, at Paths.get
. So nothing we do in BucketUtils
can fix that.
It turns out we can edit issue titles! I changed it to remove the potential confusion.
Note that we have a workaround (to the problem as initially described): instead of
BucketUtils.isCloudStorageUrl(Paths.get(URI.create("gs://abucket/bucket")))
You can use:
BucketUtils.isCloudStorageUrl("gs://abucket/bucket")
throws
This should be a safe method to call. We should either refactor this method or we change NIO to not throw in this case.