From 1a72c27d20153d4b7f034124844b9b5ce86a493a Mon Sep 17 00:00:00 2001 From: Javier Montalvo Orus Date: Fri, 23 Feb 2007 20:48:15 +0000 Subject: [PATCH] [169680] [ftp] FTP files subsystem and service should use passive mode --- .../ftp/connectorservice/FTPConnectorService.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/internal/subsystems/files/ftp/connectorservice/FTPConnectorService.java b/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/internal/subsystems/files/ftp/connectorservice/FTPConnectorService.java index ef4fac70568..984060925c8 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/internal/subsystems/files/ftp/connectorservice/FTPConnectorService.java +++ b/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/internal/subsystems/files/ftp/connectorservice/FTPConnectorService.java @@ -44,14 +44,6 @@ public class FTPConnectorService extends AbstractConnectorService { super(SystemFileResources.RESID_FTP_CONNECTORSERVICE_NAME,SystemFileResources.RESID_FTP_CONNECTORSERVICE_DESCRIPTION, host, port); _ftpService = new FTPService(); - - _propertySet = getPropertySet("FTP Settings"); //$NON-NLS-1$ - - if(_propertySet==null) - { - _propertySet = createPropertySet("FTP Settings"); //$NON-NLS-1$ - _propertySet.addProperty("passive","false",PropertyType.getEnumPropertyType(new String[]{"true","false"})); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - } } public void internalConnect(IProgressMonitor monitor) throws Exception @@ -61,6 +53,13 @@ public class FTPConnectorService extends AbstractConnectorService private void internalConnect() throws Exception { + _propertySet = getPropertySet("FTP Settings"); //$NON-NLS-1$ + + if(_propertySet==null) + { + _propertySet = createPropertySet("FTP Settings"); //$NON-NLS-1$ + _propertySet.addProperty("passive","false",PropertyType.getEnumPropertyType(new String[]{"true","false"})); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + } SystemSignonInformation info = getPasswordInformation(); _ftpService.setHostName(info.getHostname());