Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-104

Additional Options: define posixPermissions for folders and files

    XMLWordPrintable

Details

    • Feature
    • Status: Deferred (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • YADE Client
    • None
    • all

    Description

      Current Situation

      • When creating a destination directory using the make_dirs option e.g. with FTP operation send then the directory is created, but without an executable permission bit set for group and other.
      • It is not possible to cd into a newly created directory as the executable bit is not set.

      Desired Behavior

      • In order to be able to cd into the directory the executable bit must be set.
      • This feature should be available for FTP and SFTP.

      Proposed Changes

      • In the "src\java\sos\net\ SOSShttp://FTP.java" module, the code is setting the 484 decimal permissions. Converting to octal gives 0744 (rwxr-r-).
      • What is required is the "x" bit for group and other, or alternatively, allow the "umask" setting for the operating account to set the proper default permissions when creating a directory.
        public boolean mkdir(String pathname) throws IOException {
                    pathname = resolvePathname(pathname);
                    try{
                          sftpClient.mkdir(pathname, 484);
                    } catch(Exception e){
                          reply = e.toString();
                          return false;
                    }
                    reply = "mkdir OK";
                    return true;
              }
        

      Maintainer Notes

      • This feature is not intended for immediate implementation*
      • Please vote for this issue and let us know your feedback.

      Attachments

        Activity

          People

            sos_yade_team TeamYADE
            kb Klaus-Dieter Buettner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 3 days
                3d
                Logged:
                Time Spent - Not Specified
                Not Specified