YARN-5206. RegistrySecurity includes id:pass in exception text if considered invalid. Contributed by Steve Loughran

(cherry picked from commit 8c8a377cac)
This commit is contained in:
Jason Lowe 2016-06-08 14:11:25 +00:00
parent 154c7c343b
commit c6f33e096e
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ public class RegistrySecurity extends AbstractService {
*/ */
public String digest(String idPasswordPair) throws IOException { public String digest(String idPasswordPair) throws IOException {
if (StringUtils.isEmpty(idPasswordPair) || !isValid(idPasswordPair)) { if (StringUtils.isEmpty(idPasswordPair) || !isValid(idPasswordPair)) {
throw new IOException("Invalid id:password: " + idPasswordPair); throw new IOException("Invalid id:password");
} }
try { try {
return DigestAuthenticationProvider.generateDigest(idPasswordPair); return DigestAuthenticationProvider.generateDigest(idPasswordPair);