You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/08/18 17:07:32 UTC

[jira] [Updated] (BEAM-1174) URI Java library unexpected behavior.

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

Beam JIRA Bot updated BEAM-1174:
--------------------------------
    Labels: stale-P2  (was: )

> 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-P2
>
> 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)