ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Viacheslav Garmash <vgarm...@exadel.com>
Subject need to add remoteVerificationEnabled attribute to FTP task
Date Mon, 20 Jun 2005 19:43:34 GMT
Hello all!

Some days ago I decided to use FTP Ant task for automatize some 
deployment tasks. In local network all works fine but when I tried to 
deloy to remote server (outside our firewall) I have caught an IOException:

"Host attempting data connection xxx.xxx.xxx.xx2 is not same as server 
xxx.xxx.xxx.xx1"

where xxx.xxx.xxx.xx2 is IP of our firewall and xxx.xxx.xxx.xx1 IP of 
remote server. Setproxy didn't help at all...

In Google Groups I have found solution for our problem: 
http://groups.google.com/groups?hl=ru&lr=&threadm=pan.2005.05.11.07.52.37.118599%40libero.it&rnum=1&prev=/groups%3Fq%3D%2522is%2Bnot%2Bsame%2Bas%2Bserver%2522%2Bcommons%26hl%3Dru%26lr%3D%26selm%3Dpan.2005.05.11.07.52.37.118599%2540libero.it%26rnum%3D1
To apply this solution I have to setRemoteVerificationEnabled(false). 
But this property still not changeble from Ant and what is more this 
problem exists in Ant some years (look here: 
http://www.mail-archive.com/ant-user@jakarta.apache.org/msg20460.html - 
the same problem without solution from 2002 year). But this is rare 
problem: only 5 questions in Google: 
http://www.google.com/search?ie=windows-1251&q=%22Host+attempting+data+connection%22++%22is+not+same+as+server%22
That's why no solution till now.

So. To resolve this problem I have add remoteVerificationEnabled 
attribute to FTP task (see attached diff file). And now ftp works 
perfectly behind firewall. I think this attribute will be very useful 
for everybody. Please, add this attribute to next version of Ant.

Best Regards,

--
Viacheslav Garmash
Team Leader
Exadel Inc.
e-mail: vgarmash@exadel.com
phone       +375 17 2626260 ext. 106
cellular    +375 29 4038657

Mime
View raw message