You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Aizhamal Nurmamat kyzy (JIRA)" <ji...@apache.org> on 2019/05/18 03:14:05 UTC

[jira] [Updated] (AIRFLOW-1860) When adding variables in Web GUI they are case-insensitive, but everywhere else they are case-sensitive

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

Aizhamal Nurmamat kyzy updated AIRFLOW-1860:
--------------------------------------------
         Labels: webapp  (was: )
    Component/s:     (was: webapp)
                 ui

Moving to ui component as part of component refactor. Webapp component will be removed.

> 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: ui
>    Affects Versions: 1.8.0
>            Reporter: Zelko Nikolic
>            Priority: Minor
>              Labels: webapp
>         Attachments: aIRFLOW11.PNG
>
>
> 1. Open Web GUI -> Variables
> 2. Add a variable named "ABCD" and enter some value for it.
> 3. Now add a variable named "abcd", enter some value and save it. Oh, 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
(v7.6.3#76005)