Details
-
Sub-task
-
Status: Open
-
P3
-
Resolution: Unresolved
-
None
-
None
Description
Following code creates an invalid URI silently.
URI uri = URI.create("gs://bucket").resolve("staging")
a). uri.toString() returns gs://bucketstaging
b). "java.net.URISyntaxException: Relative path in absolute URI: gs://bucketstaging" thrown by
new URI(uri.getScheme(), uri.getAuthority(), uri.getPath(), uri.getQuery(), uri.getFragment())
Conversions between URIs and Strings have to be handled with with extreme caution.