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:
parent
9b68eda274
commit
fdea6ee0d1
|
@ -145,6 +145,9 @@ Release 2.7.3 - UNRELEASED
|
||||||
YARN-4459. container-executor should only kill process groups (Jun Gong
|
YARN-4459. container-executor should only kill process groups (Jun Gong
|
||||||
via jlowe)
|
via jlowe)
|
||||||
|
|
||||||
|
YARN-5206. RegistrySecurity includes id:pass in exception text if
|
||||||
|
considered invalid (Steve Loughran via jlowe)
|
||||||
|
|
||||||
Release 2.7.2 - 2016-01-25
|
Release 2.7.2 - 2016-01-25
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue