You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/07/15 21:22:13 UTC
[GitHub] [airflow] jcom000 opened a new issue, #25103: API `variables/{variable_key}` request fails if key has character `/`
jcom000 opened a new issue, #25103:
URL: https://github.com/apache/airflow/issues/25103
### Apache Airflow version
2.3.2
### What happened
Created a variable e.g. `a/variable` and couldn't get or delete it
### What you think should happen instead
i shouldn't've been allowed to create a variable with `/`, or the GET and DELETE should work
### How to reproduce
![image](https://user-images.githubusercontent.com/98349137/179311482-e3a74683-d855-4013-b27a-01dfae7db0ff.png)
![image](https://user-images.githubusercontent.com/98349137/179311639-7640b0b5-38c6-4002-a04c-5bcd8f8a0784.png)
```
DELETE /variables/{variable_key}
GET /variables/{variable_key}
```
create a variable with `/`, and then try and get it. the get will 404, even after html escape. delete also fails
`GET /variables/` works just fine
### Operating System
astro
### Versions of Apache Airflow Providers
_No response_
### Deployment
Astronomer
### 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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] boring-cyborg[bot] commented on issue #25103: API `variables/{variable_key}` request fails if key has character `/`
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #25103:
URL: https://github.com/apache/airflow/issues/25103#issuecomment-1185954099
Thanks for opening your first issue here! Be sure to follow the issue template!
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk closed issue #25103: API `variables/{variable_key}` request fails if key has character `/`
Posted by GitBox <gi...@apache.org>.
potiuk closed issue #25103: API `variables/{variable_key}` request fails if key has character `/`
URL: https://github.com/apache/airflow/issues/25103
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] mik-laj commented on issue #25103: API `variables/{variable_key}` request fails if key has character `/`
Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #25103:
URL: https://github.com/apache/airflow/issues/25103#issuecomment-1186098816
You need to url-encode this parametr i e replace `/` to `%2F`. Can you check if everything works then?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org