Kamla created AIRFLOW-3972:
------------------------------

             Summary: 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



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