You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2019/04/04 08:49:00 UTC
[jira] [Closed] (AIRFLOW-3972) Http Operators sets Connection
model's schema property to the scheme of the uri
[ https://issues.apache.org/jira/browse/AIRFLOW-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ash Berlin-Taylor closed AIRFLOW-3972.
--------------------------------------
Resolution: Duplicate
Fix Version/s: (was: 2.0.0)
> 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
>
> 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)