initiateListParsing should not cache entryParser
------------------------------------------------

                 Key: NET-302
                 URL: https://issues.apache.org/jira/browse/NET-302
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: z/OS based ftp server
            Reporter: Jürgen Weber


if you use initiateListParsing with a  FTPFileEntryParser  this code can fail:

FTPClient.listFiles()

ftp.initiateListParsing(parserKey, ...

It seems that the listFiles() already set a parser, that gets cached and the 
parser in the initiateListParsing gets ignored.

For z/OS you can use ftp for file transfer and for submitting jobs, in the 
second case you'd want another parser than for the first call.
c.f. 
http://www.ibm.com/developerworks/systems/library/es-zosbatchjavav/index.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to