[ 
https://issues.apache.org/jira/browse/BEAM-1174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Beam JIRA Bot reassigned BEAM-1174:
-----------------------------------

    Assignee:     (was: Pei He)

> URI Java library unexpected behavior.
> -------------------------------------
>
>                 Key: BEAM-1174
>                 URL: https://issues.apache.org/jira/browse/BEAM-1174
>             Project: Beam
>          Issue Type: Sub-task
>          Components: io-java-gcp, sdk-java-core
>            Reporter: Pei He
>            Priority: P2
>              Labels: stale-assigned
>
> 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. :(



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to