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/09/02 17:08:40 UTC

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

    [ https://issues.apache.org/jira/browse/BEAM-1174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17189537#comment-17189537 ] 

Beam JIRA Bot commented on BEAM-1174:
-------------------------------------

This issue was marked "stale-P2" and has not received a public comment in 14 days. It is now automatically moved to P3. If you are still affected by it, you can comment and move it back to P2.

> 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: P3
>
> 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)