beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pei He (JIRA)" <>
Subject [jira] [Created] (BEAM-1174) URI Java library unexpected behavior.
Date Fri, 16 Dec 2016 23:41:58 GMT
Pei He created BEAM-1174:

             Summary: URI Java library unexpected behavior.
                 Key: BEAM-1174
             Project: Beam
          Issue Type: Sub-task
            Reporter: Pei He
            Assignee: Pei He

Following code creates an invalid URI silently.
URI uri = URI.create("gs://bucket").resolve("staging")

a). uri.toString() returns gs://bucketstaging

b). " Relative path in absolute URI: gs://bucketstaging" thrown
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

View raw message