uranusjr commented on code in PR #32292:
URL: https://github.com/apache/airflow/pull/32292#discussion_r1254072035


##########
airflow/www/forms.py:
##########
@@ -220,9 +220,9 @@ class ConnectionForm(DynamicForm):
             ),
         )
         description = StringField(lazy_gettext("Description"), 
widget=BS3TextAreaFieldWidget())
-        host = StringField(lazy_gettext("Host"), widget=BS3TextFieldWidget())
+        host = StringField(lazy_gettext("Host"), widget=BS3TextFieldWidget(), 
filters=[strip_filter])
         schema = StringField(lazy_gettext("Schema"), 
widget=BS3TextFieldWidget())
-        login = StringField(lazy_gettext("Login"), widget=BS3TextFieldWidget())
+        login = StringField(lazy_gettext("Login"), 
widget=BS3TextFieldWidget(), filters=[strip_filter])

Review Comment:
   It shouldn’t, since no spaces are technically allowed in any of the text 
fields anyway (except description). It would be a bug elsewhere if a connection 
requires a space to work in any of those fields.



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