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

FsPermission string constructor does not recognize sticky bit

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha2, 2.8.2, 2.7.6
    • None
    • 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.003.patch
          7 kB
          Christopher Douglas
        2. HADOOP-13508.004.patch
          7 kB
          Christopher Douglas
        3. HADOOP-13508.005.patch
          40 kB
          Christopher Douglas
        4. HADOOP-13508.006.patch
          39 kB
          Christopher Douglas
        5. HADOOP-13508.branch-2.patch
          40 kB
          Wei-Chiu Chuang
        6. HADOOP-13508-1.patch
          1 kB
          Atul Sikaria
        7. HADOOP-13508-2.patch
          1 kB
          Atul Sikaria

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment