Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-639

Bug in MVSFTPEntryParser.preParse - MVS, z/OS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6
    • 3.7
    • FTP
    • different clients running Windows 7, AIX, Ubuntu 16.04
      IBM FTP CS V2R1 as ftp host running z/OS 02.01.00

    Description

      Some PS-files couldn't be retrieved from ftp host (during FTPClient.listFiles("xxx")). After investigation we've noticed, that the file has an unusual large allocation info (reading

      Volume Unit    Referred Ext Used Recfm Lrecl BlkSz Dsorg Dsname
         :     :          :     :   :    :      :    :    :      :
      PEZ320 3390   2017/07/03  215807  FB   29600 29600  PS  'LBP.TX.FTP.LAZAGDOM.WORK.HILF'
         :     :          :     :   :    :      :    :    :      :
      
      

      so the values of ext and used column merged. As a result, the pattern FILE_LIST_REGEX in MVSFTPEntryParser doesn't match -> the file is ignored.

      Quick Fix in Comments described ...

      Attachments

        1. MVSFTPEntryParserTest.patch
          2 kB
          Alexander Eller
        2. MVSFTPEntryParser.patch
          1 kB
          Alexander Eller

        Activity

          People

            Unassigned Unassigned
            baloo66 Alexander Eller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: