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

ASF subversion and git services commented on AIRFLOW-2314:
----------------------------------------------------------

Commit 1fa71f5a5c8925c670d07198c43af65097e9d00d in incubator-airflow's branch 
refs/heads/master from Guillermo Rodriguez Cano
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=1fa71f5 ]

[AIRFLOW-3212][AIRFLOW-2314] Remove only leading slash in GCS path

Closes #3212 from wileeam/fix-gcs-hook-helper-
function


> Fix strip of trailing slash in GCS paths
> ----------------------------------------
>
>                 Key: AIRFLOW-2314
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2314
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: contrib, dependencies, gcp
>            Reporter: Guillermo Rodríguez Cano
>            Assignee: Guillermo Rodríguez Cano
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 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
(v7.6.3#76005)

Reply via email to