Cannot get/patch/delete a variable if its key contains slash character #50796
Labels
area:API
Airflow's REST/HTTP API
area:core
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
Milestone
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
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?
Code of Conduct
The text was updated successfully, but these errors were encountered: