zhangshenghang opened a new issue, #7863: URL: https://github.com/apache/seatunnel/issues/7863
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened Configuring connection_mode does not take effect ``` source { FtpFile { host= "172.16.25.204" port= 21 connection_mode= "passive_local" user= "admin" password= "admin" path= "/123.txt" file_format_type= "binary" encoding = "UTF-8" } } ``` Exception:  Cause of the problem: Described in the document: You can set active_local and passive_local, that is: connection_mode = "active_local"  In `FtpConnectionMode.java` you can see the implementation code:  But when ConfigUtil parses the mode, it tries to filter by ACTIVE_LOCAL_DATA_CONNECTION_MODE = active_local, which is wrong.  This will eventually cause the enumeration parsing to fail and return an exception.  Resolve method: The name in the enumeration must be consistent with the logic of the ConfigUtil.convertToEnum method  ### SeaTunnel Version dev ### SeaTunnel Config ```conf source { FtpFile { host= "172.16.25.204" port= 21 connection_mode= "passive_local" user= "admin" password= "admin" path= "/123.txt" file_format_type= "binary" encoding = "UTF-8" } } ``` ``` ### Running Command ```shell run ftp sync ``` ### Error Exception ```log Refer above ``` ### Zeta or Flink or Spark Version _No response_ ### Java or Scala Version _No response_ ### Screenshots _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://www.apache.org/foundation/policies/conduct) -- 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]
