Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.0.2-alpha
    • Fix Version/s: 2.1.0-beta, 0.23.9
    • Component/s: hdfs-client
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      I created a symlink using

      ...
          FileContext fc = FileContext.getFileContext(dst.fs.getUri());
          for (PathData src : srcs) {
            fc.createSymlink(src.path, dst.path, false);
          }
      

      After doing this to create a symlink /foo/too.txt -> /foo/hello.txt, I tried to hdfs fsck and got the following:

      [adi@host01 ~]$ hdfs fsck /
      Connecting to namenode via http://host01:21070
      FSCK started by adi (auth:SIMPLE) from /172.29.122.91 for path / at Fri Nov 16 15:59:18 PST 2012
      FSCK ended at Fri Nov 16 15:59:18 PST 2012 in 3 milliseconds
      hdfs://host01:21020/foo/hello.txt
      
      
      Fsck on path '/' FAILED
      

      It's very surprising that an unprivileged user can run code which so easily causes a fundamental administration tool to fail.

      1. HDFS-4205-2.patch
        4 kB
        Jason Lowe
      2. HDFS-4205.patch
        4 kB
        Jason Lowe

        Issue Links

          Activity

          Andy Isaacson created issue -
          Andy Isaacson made changes -
          Field Original Value New Value
          Link This issue relates to HADOOP-6424 [ HADOOP-6424 ]
          Andy Isaacson made changes -
          Link This issue relates to HADOOP-7905 [ HADOOP-7905 ]
          Andy Isaacson made changes -
          Link This issue relates to HADOOP-8040 [ HADOOP-8040 ]
          Jason Lowe made changes -
          Attachment HDFS-4205.patch [ 12589083 ]
          Jason Lowe made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Target Version/s 0.23.9, 2.3.0 [ 12324563, 12324588 ]
          Assignee Jason Lowe [ jlowe ]
          Jason Lowe made changes -
          Attachment HDFS-4205-2.patch [ 12589170 ]
          Jason Lowe made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 3.0.0 [ 12320356 ]
          Fix Version/s 2.1.0-beta [ 12324031 ]
          Fix Version/s 0.23.9 [ 12324563 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Allen Wittenauer made changes -
          Fix Version/s 3.0.0 [ 12320356 ]

            People

            • Assignee:
              Jason Lowe
              Reporter:
              Andy Isaacson
            • Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development