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

CompositeGroupsMapping should not swallow exceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.9.0, 3.0.0-beta1
    • Component/s: security
    • Labels:
      None

      Description

      CompositeGroupsMapping#getGroups
         for (GroupMappingServiceProvider provider : providersList) {
            try {
              groups = provider.getGroups(user);
            } catch (Exception e) {
              //LOG.warn("Exception trying to get groups for user " + user, e);      
            }        
            if (groups != null && ! groups.isEmpty()) {
              groupSet.addAll(groups);
              if (!combined) break;
            }
          }
      

      If anything fails inside the underlying groups mapping service provider, there's no way to tell what went wrong.

        Attachments

        1. HADOOP-14743.001.patch
          0.9 kB
          Wei-Chiu Chuang
        2. HADOOP-14743.002.patch
          0.9 kB
          Wei-Chiu Chuang

          Activity

            People

            • Assignee:
              jojochuang Wei-Chiu Chuang
              Reporter:
              jojochuang Wei-Chiu Chuang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: