You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Zelko Nikolic (JIRA)" <ji...@apache.org> on 2017/11/28 22:13:00 UTC
[jira] [Created] (AIRFLOW-1860) When adding variables in Web GUI
they are case-insensitive, but everywhere else they are case-sensitive
Zelko Nikolic created AIRFLOW-1860:
--------------------------------------
Summary: When adding variables in Web GUI they are case-insensitive, but everywhere else they are case-sensitive
Key: AIRFLOW-1860
URL: https://issues.apache.org/jira/browse/AIRFLOW-1860
Project: Apache Airflow
Issue Type: Bug
Components: webapp
Affects Versions: Airflow 1.8
Reporter: Zelko Nikolic
Priority: Minor
1. Open Web GUI -> Variables
2. Add a variable named "ABCD" and enter some value for it.
3. Add a variable named "abcd"... you can't. It says that variable already exists. As if variable names are case-insensitive. But they are not.
4. Because if you try accessing the first variable from the code, using Variable.get("abcd"), it will say that variable doesn't exist.
So, from the code variables are case-sensitive, but when Web GUI is adding them, it treats them case-insensitive. To make things even weirder, when you sort the variables by name in Web GUI, it sorts uppercase first, then lowercase. Obviously, even Web GUI isn't consistent with itself, because it's treating them sometimes case-sensitive, sometimes case-insensitive.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)