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

FsPermission string constructor does not recognize sticky bit

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha2, 2.8.2, 2.7.6
    • Component/s: None
    • Labels:
      None

      Description

      FsPermissions's string constructor breaks on valid permission strings, like "1777".

      This is because FsPermission class naïvely uses UmaskParser to do it’s parsing of permissions: (from source code):
      public FsPermission(String mode) {
      this((new UmaskParser(mode)).getUMask());
      }

      The mode string UMask accepts is subtly different (esp wrt sticky bit), so parsing Umask is not the same as parsing FsPermission.

        Attachments

        1. HADOOP-13508-1.patch
          1 kB
          Atul Sikaria
        2. HADOOP-13508-2.patch
          1 kB
          Atul Sikaria
        3. HADOOP-13508.003.patch
          7 kB
          Chris Douglas
        4. HADOOP-13508.004.patch
          7 kB
          Chris Douglas
        5. HADOOP-13508.005.patch
          40 kB
          Chris Douglas
        6. HADOOP-13508.006.patch
          39 kB
          Chris Douglas
        7. HADOOP-13508.branch-2.patch
          40 kB
          Wei-Chiu Chuang

          Issue Links

            Activity

              People

              • Assignee:
                ASikaria Atul Sikaria
                Reporter:
                ASikaria Atul Sikaria
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: