Merge branch 'stable-2.6' into stable-2.7
* stable-2.6: Catch missing LDAP accounts in group membership Update patch status before skipping duplicate emails Conflicts: gerrit-server/src/main/java/com/google/gerrit/server/change/Submit.java Change-Id: If7173d50f09fa799e1cdd02e68b88aab00f1a1d9
This commit is contained in:
@@ -198,7 +198,13 @@ import javax.security.auth.login.LoginException;
|
||||
final HashMap<String, String> params = new HashMap<String, String>();
|
||||
|
||||
if (account == null) {
|
||||
account = findAccount(schema, ctx, username);
|
||||
try {
|
||||
account = findAccount(schema, ctx, username);
|
||||
} catch (AccountException e) {
|
||||
LdapRealm.log.warn("Account " + username +
|
||||
" not found, assuming empty group membership");
|
||||
return Collections.emptySet();
|
||||
}
|
||||
}
|
||||
for (String name : schema.groupMemberQueryList.get(0).getParameters()) {
|
||||
params.put(name, account.get(name));
|
||||
@@ -215,7 +221,13 @@ import javax.security.auth.login.LoginException;
|
||||
|
||||
if (schema.accountMemberField != null) {
|
||||
if (account == null) {
|
||||
account = findAccount(schema, ctx, username);
|
||||
try {
|
||||
account = findAccount(schema, ctx, username);
|
||||
} catch (AccountException e) {
|
||||
LdapRealm.log.warn("Account " + username +
|
||||
" not found, assuming empty group membership");
|
||||
return Collections.emptySet();
|
||||
}
|
||||
}
|
||||
|
||||
final Attribute groupAtt = account.getAll(schema.accountMemberField);
|
||||
|
||||
Reference in New Issue
Block a user