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

Ash Berlin-Taylor updated AIRFLOW-3972:
---------------------------------------
    Fix Version/s: 2.0.0
      Description: 
The HttpOperator is expecting there to be a *schema* property on the Connection 
model after it parses through a URI env connection string here: 
[https://github.com/apache/airflow/blob/6b38649fa6cdf16055c7f5458050c70f39cac8fd/airflow/hooks/http_hook.py#L67]

However the Connection model uses a subset of the uri path to set the `schema` 
property on itself. The HttpOperator sets the url to *schema + '://' + host* 
and if the schema isn't set, it uses http by default which prevents us from 
hitting https endpoints.  

the HTTP operator is assuming the schema property is a scheme, and the 
connection model doesn't include a scheme in the model. 

  was:

The HttpOperator is expecting there to be a *schema* property on the Connection 
model after it parses through a URI env connection string here: 
[https://github.com/apache/airflow/blob/6b38649fa6cdf16055c7f5458050c70f39cac8fd/airflow/hooks/http_hook.py#L67]

However the Connection model uses a subset of the uri path to set the `schema` 
property on itself. The HttpOperator sets the url to *schema + '://' + host* 
and if the schema isn't set, it uses http by default which prevents us from 
hitting https endpoints.  

the HTTP operator is assuming the schema property is a scheme, and the 
connection model doesn't include a scheme in the model. 


> Http Operators sets Connection model's schema property to the scheme of the 
> uri
> -------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-3972
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3972
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hooks, models
>    Affects Versions: 1.10.2
>            Reporter: Kamla
>            Priority: Major
>             Fix For: 2.0.0
>
>
> The HttpOperator is expecting there to be a *schema* property on the 
> Connection model after it parses through a URI env connection string here: 
> [https://github.com/apache/airflow/blob/6b38649fa6cdf16055c7f5458050c70f39cac8fd/airflow/hooks/http_hook.py#L67]
> However the Connection model uses a subset of the uri path to set the 
> `schema` property on itself. The HttpOperator sets the url to *schema + '://' 
> + host* and if the schema isn't set, it uses http by default which prevents 
> us from hitting https endpoints.  
> the HTTP operator is assuming the schema property is a scheme, and the 
> connection model doesn't include a scheme in the model. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to