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

   ### Apache Airflow version
   
   2.6.3
   
   ### What happened
   
   JDBC test connection fails with message: _The conn_id `t8E1J8DC` isn't 
defined_
   
   Sample JDBC URL: jdbc:postgres://10.0.0.1
   This issue with any JDBC URL with colon in it, which is a valid character.
   
   ### What you think should happen instead
   
   URL should be parsed correctly, and the test connection should be executed.
   
   Issue seems to be in code connection module 
(lib/python3.9/site-packages/airflow/models/connection.py) lines 198-201
   ```
   uri_splits = rest_of_the_url.split("://", 1)
               if "@" in uri_splits[0] or ":" in uri_splits[0]:
                   raise AirflowException(f"Invalid connection string: {uri}.")
   ```
   
   ### How to reproduce
   
   Create new connection with a JDBC URL that has ":" (colon).
   
   ### Operating System
   
   Centos 7
   
   ### Versions of Apache Airflow Providers
   
   
https://raw.githubusercontent.com/apache/airflow/constraints-2.6.3/constraints-3.9.txt
   
   ### 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