shubhamraj-git opened a new pull request, #67946:
URL: https://github.com/apache/airflow/pull/67946

   Some FTPS servers are configured to require a protected data channel and 
reject any data transfer that is not preceded by "PROT P". Against such a 
server, the current `FTPSHook` / `FTPSFileTransmitOperator` path fails with:    
                                                                                
                                                         
                                                                                
                                                                             
     `ftplib.error_perm: 550 SSL/TLS required on the data channel.`             
                                                                           
                                                                                
                                                                             
   After this change, the same operator interoperates correctly with both 
permissive and strict FTPS servers.
   
   This PR adds the missing `self.conn.prot_p()` call after login, matching the 
standard `ftplib.FTP_TLS` usage documented in the Python stdlib:                
                                                                    
                                                                                
                                                                             
     > The user must explicitly secure the data connection by calling the 
`prot_p()` method.                                                              
   
     >                                                                          
                                                                             
     > — https://docs.python.org/3/library/ftplib.html#ftplib.FTP_TLS  
   
   ##### Was generative AI tooling used to co-author this PR?
   - [x] Yes - Claude Code (Opus 4.7)
   


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