Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14429

FTPFileSystem#getFsAction always returns FsAction.NONE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha2
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      private FsAction getFsAction(int accessGroup, FTPFile ftpFile) {
            FsAction action = FsAction.NONE;
            if (ftpFile.hasPermission(accessGroup, FTPFile.READ_PERMISSION)) {
            action.or(FsAction.READ);
        }
          if (ftpFile.hasPermission(accessGroup, FTPFile.WRITE_PERMISSION)) {
            action.or(FsAction.WRITE);
          }
          if (ftpFile.hasPermission(accessGroup, FTPFile.EXECUTE_PERMISSION)) {
            action.or(FsAction.EXECUTE);
          }
          return action;
        }
      

      from code above, we can see that the getFsAction method doesnot modify the action generated by FsAction action = FsAction.NONE,which means it return FsAction.NONE all the time;

        Attachments

        1. HADOOP-14429-009.patch
          4 kB
          Hongyuan Li
        2. HADOOP-14429-008.patch
          4 kB
          Hongyuan Li
        3. HADOOP-14429-007.patch
          5 kB
          Hongyuan Li
        4. HADOOP-14429-006.patch
          5 kB
          Hongyuan Li
        5. HADOOP-14429-005.patch
          5 kB
          Hongyuan Li
        6. HADOOP-14429-004.patch
          5 kB
          Hongyuan Li
        7. HADOOP-14429-003.patch
          5 kB
          Hongyuan Li
        8. HADOOP-14429-002.patch
          5 kB
          Hongyuan Li
        9. HADOOP-14429-001.patch
          1 kB
          Hongyuan Li

          Issue Links

            Activity

              People

              • Assignee:
                Hongyuan Li Hongyuan Li
                Reporter:
                Hongyuan Li Hongyuan Li
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: