|
1. please try against CVS_HEAD or Ant1.6.5 and verify that the problem is still
there. I suspect it is, but, we need to be sure, and diffs against latest code are easier to apply. 2, the patch hides a symptom, not the underlying cause, and we should fix it for (int icounter = 0; icounter < array.length; icounter++) { then we are iterating twice through the array. the outer loop needs to handle (In reply to comment #2)
Hi Steve, the array[icounter].isDirectory() for some reason returns always true, even if Buildfile: build.xml all: In addition, you are right. For my current directory it's luck, that the The root error seams to be in commons net classes, since with a wu-ftp server Maybe isDirectory() is final and the JVM is not checking things.
If this is a recurrent problem, the best tactic would be to strip null fields (In reply to comment #4)
I found the error in commons-net UnixFTPEntryParser.java This class is unable to handle the external symlink permission bit in z/OS which is e. erwxrwxrwx 1 OMVSKERN SYS1 7 Feb 14 2005 libJavTDLI.so -> DFSCLIB The regular expression which is defined there is not able to handle the e which leeds to skip all processing and return a null FTPFile Object. I don't know, if you think it is still required to catch null entries. I try to Here is the description of the e bit from the z/OS Unix System Services Manual:
-e ln -e NOLL.PLIB.PGMA /u/noll/plib/pgma External links can also be used to map an HFS file name to a PDS or PDSE ln -e MYPGM /u/smorg/mylongpgmname Created an attachment (id=16118)
diff for UnixFTPEntryParser for commons-net-src-20050819 It adds support for the z/OS external link bit e, which is so far not included Pardon my ignorance, but I don't know very much about z/OS. I do know something
about commons-net and the ftp parsers. Is this external link bit "e" something that is z/OS specific or do other Are there other differences between z/OS and regular unix FTP servers that we Where I'm going with this is: Would it be better to accept this patch or to create an independent parser for When connecting to a z/OS FTP server, what does the SYST ftp command return? Sorry to take so long in answering, but would like to have these questions (In reply to comment #8)
Hi Steve, sorry for the delay, I did not get an email for your update. We have been using I think it is better to have a parser for z/OS FTP Server, here is the SYST Output: Hope that helps, Denis. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
diff file for the solution
It should be easy to forward fit this solution for newer versions of FTP.java