Hi Bruce,
I test edtFTP Open Source C# version with OpenVMS FTP server
and I found problems with ftpConnection.GetFileInfos() command
1. After FTP LIST command my VMS server send [owner] filed agains [group,owner]. This generate error:
Unable to parse [group,owner] field.
Please see log below:
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 8 sty 2007 13:53:28.386 : ---> LIST Login.com
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 8 sty 2007 13:53:28.386 : 150 Opening data connection for Login.com (XXX.XXX.XXX.XXX,1690)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 13:53:28.396 : -->
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 13:53:28.396 : -->Directory PROD$HOME:[DDDD]
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 13:53:28.396 : -->
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 13:53:28.396 : -->LOGIN.COM;2 1/16 25-JUL-2001 16:09:19 [DDDD] (RWED,RWED,RE,)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 13:53:28.396 : -->
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 13:53:28.396 : -->Total of 1 file, 1/16 blocks
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 8 sty 2007 13:53:28.396 : 226 LIST Directory transfer complete.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 13:53:28.396 : Found 6 listing lines
DEBUG [EnterpriseDT.Net.Ftp.FTPFileFactory] 8 sty 2007 13:54:07.499 : Unable to parse [group,owner] field '[DDDD]'
2. When VMS file name start from small letter d, code from:
FTPFileFactory.cs public virtual FTPFile[] Parse(string[] files)
if (!checkedUnix && parser != unix && UnixFileParser.IsUnix(files[i])) {
parser = unix;
checkedUnix = true;
log.Info("Swapping Windows parser to Unix");
}
qualify it as UNIX listing (UnixFileParser.IsUnix(files[i])==true) and swap parser from VMS to UNIX
It generates following error: Failed to parse size
Please see log bellow:
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 8 sty 2007 14:33:59.932 : ---> LIST deb12345.txt
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 8 sty 2007 14:33:59.932 : 150 Opening data connection for deb12345.txt (XXX.XXX.XXX.XXX,3003)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 14:33:59.942 : -->
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 14:33:59.942 : -->Directory PROD$HOME:[DDDD]
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 14:33:59.942 : -->
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 14:33:59.942 : -->deb12345.TXT;1 56/56 2-JAN-2007 11:40:20 [DDDD] (RWED,RWED,RE,)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 14:33:59.942 : -->
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 14:33:59.942 : -->Total of 1 file, 56/56 blocks
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 8 sty 2007 14:33:59.942 : 226 LIST Directory transfer complete.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 sty 2007 14:33:59.942 : Found 6 listing lines
INFO [EnterpriseDT.Net.Ftp.FTPFileFactory] 8 sty 2007 14:34:15.776 : Swapping Windows parser to Unix
DEBUG [EnterpriseDT.Net.Ftp.FTPFileFactory] 8 sty 2007 14:34:32.804 : Failed to parse size: 11:40:20
INFO [EnterpriseDT.Net.Ftp.FTPFileFactory] 8 sty 2007 14:34:34.892 : Rotated parser to Windows
Best regards,
Grzegorz