Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-182

Usage of FTP with heterogeneous FTP server (possibility of using Ascii file type)

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Labels:
      None
    • Environment:

      Mainframe BULL GCOS8

      Description

      Using VFS with ftpServer on Mainframe Bull. I need the posibility to set the file type to Ascii. The navigation in the directory and the filesystem work properly but the accessing of a data file is not possible.

      I saw that the FtpClienFactory allways set the file type to binary, is it possible to give an external parameter, ..

      FtpClienFactory :

      ....
      // Set binary mode
      if (!client.setFileType(FTP.BINARY_FILE_TYPE))

      { throw new FileSystemException("vfs.provider.ftp/set-binary.error", hostname); }

      ...

      Christian Bastin.

        Attachments

        1. vfs-182_allow_ascii_file_type_v2.diff
          3 kB
          Andreas Persson
        2. vfs-182_allow_ascii_file_type.diff
          3 kB
          Magnus Axelsson

          Activity

            People

            • Assignee:
              ggregory Gary Gregory
              Reporter:
              christian.bastin Christian Bastin
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: