Pyasma commented on code in PR #57969:
URL: https://github.com/apache/airflow/pull/57969#discussion_r2502049258


##########
airflow-core/src/airflow/models/connection.py:
##########
@@ -329,12 +329,27 @@ def get_uri(self) -> str:
 
         if self.extra:
             try:
-                query: str | None = urlencode(self.extra_dejson)
-            except TypeError:
-                query = None
-            if query and self.extra_dejson == dict(parse_qsl(query, 
keep_blank_values=True)):
-                uri += ("?" if self.schema else "/?") + query
-            else:
+                extras_dict = self.extra_dejson
+                has_unserializable = any(v in (None, "") for v in 
extras_dict.values())

Review Comment:
   thanks for the review
   I added that check to basically catch values that contain none query 
parameters from the URI
   
   i can add comments explaining that or just remove that if we solely want to 
rely on stringified data for safety



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