YARN-5206. RegistrySecurity includes id:pass in exception text if considered invalid. Contributed by Steve Loughran
This commit is contained in:
parent
723432b338
commit
8c8a377cac
@ -443,7 +443,7 @@ public String getKerberosRealm() {
|
||||
*/
|
||||
public String digest(String idPasswordPair) throws IOException {
|
||||
if (StringUtils.isEmpty(idPasswordPair) || !isValid(idPasswordPair)) {
|
||||
throw new IOException("Invalid id:password: " + idPasswordPair);
|
||||
throw new IOException("Invalid id:password");
|
||||
}
|
||||
try {
|
||||
return DigestAuthenticationProvider.generateDigest(idPasswordPair);
|
||||
|
Loading…
Reference in New Issue
Block a user