Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0, 2.0.0-alpha, 3.0.0
    • Fix Version/s: 0.23.7, 2.1.0-beta
    • Component/s: security
    • Labels:
      None

      Description

      The UGI.setLoginUser method is not publicly exposed, which makes it impossible to correctly test code executed outside of an explicit doAs. getCurrentUser/getLoginUser will always vivify the login user from the user running the test, and not an arbitrary user to be determined by the test. The method is documented with why it's not ready for prime-time, but it's good enough for tests.

      1. HADOOP-9352.branch-23.patch
        3 kB
        Daryn Sharp
      2. HADOOP-9352.patch
        2 kB
        Daryn Sharp

        Issue Links

          Activity

          Allen Wittenauer made changes -
          Fix Version/s 3.0.0 [ 12320357 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Link This issue is depended upon by HDFS-4542 [ HDFS-4542 ]
          Gavin made changes -
          Link This issue blocks HDFS-4542 [ HDFS-4542 ]
          Kihwal Lee made changes -
          Link This issue breaks HADOOP-9476 [ HADOOP-9476 ]
          Daryn Sharp made changes -
          Link This issue is required by HDFS-4576 [ HDFS-4576 ]
          Daryn Sharp made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Fix Version/s 3.0.0 [ 12320357 ]
          Fix Version/s 0.23.7 [ 12323956 ]
          Fix Version/s 2.0.4-beta [ 12324030 ]
          Resolution Fixed [ 1 ]
          Kihwal Lee made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Daryn Sharp made changes -
          Attachment HADOOP-9352.branch-23.patch [ 12571667 ]
          Attachment HADOOP-9352.patch [ 12571668 ]
          Daryn Sharp made changes -
          Field Original Value New Value
          Link This issue blocks HDFS-4542 [ HDFS-4542 ]
          Daryn Sharp created issue -

            People

            • Assignee:
              Daryn Sharp
              Reporter:
              Daryn Sharp
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development