airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillermo Rodríguez Cano (JIRA) <>
Subject [jira] [Commented] (AIRFLOW-2314) Fix strip of trailing slash in GCS paths
Date Wed, 11 Apr 2018 12:45:00 GMT


Guillermo Rodríguez Cano commented on AIRFLOW-2314:

PR addressing the issue:

> Fix strip of trailing slash in GCS paths
> ----------------------------------------
>                 Key: AIRFLOW-2314
>                 URL:
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: contrib, dependencies, gcp
>            Reporter: Guillermo Rodríguez Cano
>            Priority: Minor
> Behaviour of {{_parse_gcs_url}} function in {{airflow.contrib.hooks.gcs_hook}} is stripping
leading and trailing slash characters: / in the blob part of the URI
> I expect the leading slash to be removed, but not the ending one when given. Reason being
is that since the blob is a representing a full 'path' object, it is known that the separator
between the bucket and the blob will be one slash character but there may be cases when the
user wants to explicitly know whether the object is an actual file or a 'directory'.

This message was sent by Atlassian JIRA

View raw message