betodealmeida commented on a change in pull request #15151:
URL: https://github.com/apache/superset/pull/15151#discussion_r651139543



##########
File path: superset/db_engine_specs/base.py
##########
@@ -1438,7 +1438,7 @@ def validate_parameters(
             return errors
 
         port = parameters.get("port", None)
-        if not port:
+        if not port or type(port) is str:

Review comment:
       You can test by either changing the frontend temporarily to allow 
passing a string, or by mocking the request.
   
   To mock a request:
   
   1. open the network tab
   2. create a DB in the browser
   3. right click the network request and click "copy as curl"
   4. paste on a terminal, edit the command to pass a string as the port




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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to