Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-7199

HsJobsBlock reuse JobACLsManager for checkAccess

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0, 3.3.1
    • 3.4.0, 3.3.1
    • mrv2
    • None
    • Reviewed

    Description

      Reuse JobAclManager.checkAccess

       
       private boolean checkAccess(String userName) {
          if(!areAclsEnabled) {
            return true;
          }
      
          // User could see its own job.
          if (ugi.getShortUserName().equals(userName)) {
            return true;
          }
      
          // Admin could also see all jobs
          if (adminAclList != null && adminAclList.isUserAllowed(ugi)) {
            return true;
          }
          return false;
        }
      
      jobACLsManager
                .checkAccess(ugi, JobACL.VIEW_JOB, ..
                    new AccessControlList()))
      

      Attachments

        1. MAPREDUCE-7199.003.patch
          4 kB
          Bilwa S T
        2. MAPREDUCE-7199.002.patch
          3 kB
          Bilwa S T
        3. MAPREDUCE-7199-001.patch
          3 kB
          Bilwa S T

        Activity

          People

            BilwaST Bilwa S T
            bibinchundatt Bibin Chundatt
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: