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

Incorrect permission checking on mv

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.16.2
    • Fix Version/s: 0.16.4
    • Component/s: None
    • Labels:
      None
    • Environment:

      permission turned on

    • Hadoop Flags:
      Reviewed

      Description

      /data   <dir>           2008-04-04 00:47        rwxr-xr-x       root   users
      /data/testdir   <dir>           2008-04-04 23:44        rwxrwxrwx       knoguchi        users
      /user/knoguchi/test     <dir>           2008-04-04 23:45        rwxrwxrwx       knoguchi        users
      
      [knoguchi]$  hadoop dfs -mv /user/knoguchi/test /data/testdir
      mv: org.apache.hadoop.fs.permission.AccessControlException: Permission denied: user=knoguchi, access=WRITE, inode="data":root:users:rwxr-xr-x
      

      Since target directory, /data/testdir, exists, it should not check the permission of the parent directory

        Attachments

        1. 3186_20080418b.patch
          7 kB
          Tsz-wo Sze
        2. 3186_20080418c.patch
          8 kB
          Tsz-wo Sze
        3. 3186_20080420_0.16.patch
          8 kB
          Tsz-wo Sze
        4. 3186_20080420.patch
          8 kB
          Tsz-wo Sze
        5. 3186_20080429_0.16.patch
          8 kB
          Tsz-wo Sze

          Activity

            People

            • Assignee:
              szetszwo Tsz-wo Sze
              Reporter:
              knoguchi Koji Noguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: