Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-221

add x permission in LISTFileFormater

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0-M3
    • 1.0.0-M4
    • Core
    • None
    • Mac OS X

    Description

      I think, the LISTFileFormater should be changed to produce x-Permission for directories. Some graphical FTP clients show strange behavior if this is missing.
      Eg. on Mac OS X if you use Cyberduck, then a small "no entry" traffic sign will be attached to the directory icons, although it will allow you to enter the directories.
      The following patch would help:

      Index: core/src/main/java/org/apache/ftpserver/command/impl/listing/LISTFileFormater.java
      ===================================================================
      — core/src/main/java/org/apache/ftpserver/command/impl/listing/LISTFileFormater.java (revision 713977)
      +++ core/src/main/java/org/apache/ftpserver/command/impl/listing/LISTFileFormater.java (working copy)
      @@ -95,6 +95,7 @@
      permission[0] = file.isDirectory() ? 'd' : '-';
      permission[1] = file.isReadable() ? 'r' : '-';
      permission[2] = file.isWritable() ? 'w' : '-';
      + permission[3] = file.isDirectory() ? 'x' : '-';
      return permission;
      }

      Attachments

        Activity

          People

            niklas Niklas Therning
            jojo1234 Johannes Katelaan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: