From 8c8a377cac10b086a7ff37ee366b79e6b04d2738 Mon Sep 17 00:00:00 2001 From: Jason Lowe Date: Wed, 8 Jun 2016 14:11:25 +0000 Subject: [PATCH] YARN-5206. RegistrySecurity includes id:pass in exception text if considered invalid. Contributed by Steve Loughran --- .../apache/hadoop/registry/client/impl/zk/RegistrySecurity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/src/main/java/org/apache/hadoop/registry/client/impl/zk/RegistrySecurity.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/src/main/java/org/apache/hadoop/registry/client/impl/zk/RegistrySecurity.java index fc614600d2f..49673fced3b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/src/main/java/org/apache/hadoop/registry/client/impl/zk/RegistrySecurity.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/src/main/java/org/apache/hadoop/registry/client/impl/zk/RegistrySecurity.java @@ -443,7 +443,7 @@ public class RegistrySecurity extends AbstractService { */ 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);