You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ahmet Altay (JIRA)" <ji...@apache.org> on 2017/04/17 23:52:41 UTC

[jira] [Updated] (BEAM-1988) utils.path.join does not correctly handle GCS bucket roots

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

Ahmet Altay updated BEAM-1988:
------------------------------
    Description: 
Here:
https://github.com/apache/beam/blob/master/sdks/python/apache_beam/utils/path.py#L22

Joining a bucket root with a filename e.g. (gs://mybucket/ , myfile) results in invalid 'gs://mybucket//myfile', notice the double // between mybucket and myfile. (It actually does not handle anything that already ends with {{/}} correctly)

[~sb2nov] could you take this one? Also, should the `join` operation move to a BeamFileSystem level code.

(cc: [~chamikara])

  was:
Here:
https://github.com/apache/beam/blob/master/sdks/python/apache_beam/utils/path.py#L22

Joining a bucket root with a filename e.g. (gs://mybucket/ , myfile) results in invalid 'gs://mybucket//myfile', notice the double // between mybucket and myfile.

[~sb2nov] could you take this one? Also, should the `join` operation move to a BeamFileSystem level code.

(cc: [~chamikara])


> utils.path.join does not correctly handle GCS bucket roots
> ----------------------------------------------------------
>
>                 Key: BEAM-1988
>                 URL: https://issues.apache.org/jira/browse/BEAM-1988
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py
>            Reporter: Ahmet Altay
>            Assignee: Sourabh Bajaj
>
> Here:
> https://github.com/apache/beam/blob/master/sdks/python/apache_beam/utils/path.py#L22
> Joining a bucket root with a filename e.g. (gs://mybucket/ , myfile) results in invalid 'gs://mybucket//myfile', notice the double // between mybucket and myfile. (It actually does not handle anything that already ends with {{/}} correctly)
> [~sb2nov] could you take this one? Also, should the `join` operation move to a BeamFileSystem level code.
> (cc: [~chamikara])



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)