You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dfdeshom (via GitHub)" <gi...@apache.org> on 2023/03/08 17:36:51 UTC

[GitHub] [airflow] dfdeshom opened a new issue, #29982: Unable to get the value of a Variable that has a `/` in it in the API

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

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   When using the API, I'm unable to get the value of a Variable with a `/` in it in curl. Instead, I get a `404 - Not Found error`
   
   ### What you think should happen instead
   
   I should be able to get the value of the variable I'm looking for
   
   ### How to reproduce
   
   Create a variable with a `/` in it, ie `project/version`. 
   
   Try to get the Variable via curl:
   ```bash
   $ curl "https://localhost:8080/api/v1/variables/project/version" --user "user:password"
   
   {
     "detail": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.",
     "status": 404,
     "title": "Not Found",
     "type": "about:blank"
   }
   
   ```
   
   ### Operating System
   
   Ubuntu 22.04.2 LTS
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other 3rd-party Helm chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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] potiuk closed issue #29982: Unable to get the value of a Variable that has a `/` in it in the API

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #29982: Unable to get the value of a Variable that has a `/` in it in the API
URL: https://github.com/apache/airflow/issues/29982


-- 
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] boring-cyborg[bot] commented on issue #29982: Unable to get the value of a Variable that has a `/` in it in the API

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #29982:
URL: https://github.com/apache/airflow/issues/29982#issuecomment-1460558667

   Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
   


-- 
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 commented on issue #29982: Unable to get the value of a Variable that has a `/` in it in the API

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #29982:
URL: https://github.com/apache/airflow/issues/29982#issuecomment-1460580472

   As in all REST requests you ned to URL-encode name of the variable. Use `%2F` instead of "/". This is how URL and REST API works.


-- 
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