Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 632DA200498 for ; Tue, 29 Aug 2017 11:36:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 61B1E1664C9; Tue, 29 Aug 2017 09:36:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B2C381664C7 for ; Tue, 29 Aug 2017 11:36:04 +0200 (CEST) Received: (qmail 5374 invoked by uid 500); 29 Aug 2017 09:36:03 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 5360 invoked by uid 99); 29 Aug 2017 09:36:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2017 09:36:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E8454186869 for ; Tue, 29 Aug 2017 09:36:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id R_Bnh0RVS3lh for ; Tue, 29 Aug 2017 09:36:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 67F1E60D26 for ; Tue, 29 Aug 2017 09:36:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7D7B8E06C9 for ; Tue, 29 Aug 2017 09:36:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 311B624143 for ; Tue, 29 Aug 2017 09:36:00 +0000 (UTC) Date: Tue, 29 Aug 2017 09:36:00 +0000 (UTC) From: "Shintaro Murakami (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (AIRFLOW-1330) Connection.parse_from_uri doesn't work for google_cloud_platform and so on MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 29 Aug 2017 09:36:05 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-1330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16144995#comment-16144995 ] Shintaro Murakami edited comment on AIRFLOW-1330 at 8/29/17 9:35 AM: --------------------------------------------------------------------- It would be better to drop {{conn_url}}, or specify either only one of {{conn_url}} or other new arguments. If we set both {{conn_url}} and other new arguments, it's confusing as to which one takes precedence. After deciding which plan to go with, I will fix this PR([https://github.com/apache/incubator-airflow/pull/2525]). was (Author: mrkm4ntr): It would be better to drop {{--conn_url}}, or specify either only one of {{--conn_url}} or other new arguments. If we set both {{--conn_url}} and other new arguments, it's confusing as to which one takes precedence. After deciding which plan to go with, I will fix this PR([https://github.com/apache/incubator-airflow/pull/2525]). > Connection.parse_from_uri doesn't work for google_cloud_platform and so on > -------------------------------------------------------------------------- > > Key: AIRFLOW-1330 > URL: https://issues.apache.org/jira/browse/AIRFLOW-1330 > Project: Apache Airflow > Issue Type: Bug > Components: cli > Reporter: Yu Ishikawa > > h2. Overview > {{Connection.parse_from_uri}} doesn't work for some types like {{google_cloud_platform}} whose type name includes under scores. Since `urllib.parse.urlparse()` which is used in {{Connection.parse_from_url}} doesn't support a schema name which include under scores. > So, airflow's CLI doesn't work when a given connection URI includes under scores like {{google_cloud_platform://XXXXX}}. -- This message was sent by Atlassian JIRA (v6.4.14#64029)