[ 
https://issues.apache.org/jira/browse/AIRFLOW-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16827864#comment-16827864
 ] 

jack commented on AIRFLOW-1860:
-------------------------------

Can not reproduce on Airflow 1.10.3: !aIRFLOW11.PNG!

 

> 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: 1.8.0
>            Reporter: Zelko Nikolic
>            Priority: Minor
>         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)

Reply via email to