提交 28701a8e 编写于 作者: J Jesse Glick

Forgot to make UserIDCanonicalIdResolver catch DataAccessException.

Unclear if, say, LDAPSecurityRealm ever throws this.
上级 df14d157
......@@ -1044,7 +1044,9 @@ public class User extends AbstractModelObject implements AccessControlled, Descr
try {
return j.getSecurityRealm().loadUserByUsername(idOrFullName).getUsername();
} catch (UsernameNotFoundException x) {
// not sure
LOGGER.log(Level.FINE, "not sure whether " + idOrFullName + " is a valid username or not", x);
} catch (DataAccessException x) {
LOGGER.log(Level.FINE, "could not look up " + idOrFullName, x);
} finally {
resolving.set(false);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册