Modify

Ticket #241 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

FtpDeployTask reports FTP port as FTP server on error

Reported by: Johan Willard <johan@…> Owned by: hans
Priority: low Milestone: 2.3.1
Component: phing-tasks-ext Version: devel
Keywords: Cc:

Description

Looks like a typo. Patch included below:

--- FtpDeployTask.php	Wed Apr 16 09:20:00 2008
+++ classes\phing\tasks\ext\FtpDeployTask.php	Tue Apr 15 14:02:06 2008
@@ -126,10 +126,10 @@
 		$ftp = new Net_FTP($this->host, $this->port);
 		$ret = $ftp->connect();
 		if(PEAR::isError($ret))
-			throw new BuildException('Could not connect to FTP server '.$this->post.' on port '.$this->port.': '.$ret->getMessage());
+			throw new BuildException('Could not connect to FTP server '.$this->host.' on port '.$this->port.': '.$ret->getMessage());
 		$ret = $ftp->login($this->username, $this->password);
 		if(PEAR::isError($ret))
-			throw new BuildException('Could not login to FTP server '.$this->post.' on port '.$this->port.' with username '.$this->username.': '.$ret->getMessage());
+			throw new BuildException('Could not login to FTP server '.$this->host.' on port '.$this->port.' with username '.$this->username.': '.$ret->getMessage());
 		
 		if($this->clearFirst) {
 			// TODO change to a loop through all files and directories within current directory

Attachments

Change History

comment:1 Changed 4 years ago by mrook

  • Status changed from new to closed
  • Resolution set to fixed

This bug has been fixed in the SVN tree, revision r381.

Thank you for the report, and for helping us make Phing better!

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.