yzhsieh opened a new issue, #50796:
URL: https://github.com/apache/airflow/issues/50796

   ### Apache Airflow version
   
   3.0.1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   In Airflow 3.0, I can create a variable which key contains slash character 
'/' .
   However, once the variable created, I cannot call API to modify or delete it.
   Also I cannot get its value via "get variable" API, but I can get by list 
all variables using "get variables" API
   
   I think the problem is that the slash in variable key has been treated as 
URL separator, so the API return error.
   Also due to above reason, the APIs which not require variable key in URL 
still work (like "create variable" and "get variables")
   
   I also tried to escape '/' as %2F when calling API, but still no luck.
   In such scenario, api-server log still show '/' instead of '%2F' in visiting 
log
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   1. Create an Airflow instance, open browser and go to Variable page.
   2. Create a new variable and put a slash in its key
   3. Save the variable, it will success
   4. Try to modify this variable, it will show error with "405 Method Not 
Allowed"
   5. Try to delete this variable, it will also show error
   
   
   
   ### Operating System
   
   Ubuntu
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to