NIFI-1560:

- Fixing a copy and paste error
- Looks like when the original coder copied code from AuthenticationStrategy for the ReferralStrategy and did not change this reference for the error case.
- Also addressing the typo in the message.
- This closes #402
This commit is contained in:
Devin Fisher 2016-05-02 04:26:13 -06:00 committed by Matt Gilman
parent 45ca978498
commit 8336014064
1 changed files with 2 additions and 2 deletions

View File

@ -191,8 +191,8 @@ public class LdapProvider implements LoginIdentityProvider {
try {
referralStrategy = ReferralStrategy.valueOf(rawReferralStrategy);
} catch (final IllegalArgumentException iae) {
throw new ProviderCreationException(String.format("Unrecgonized authentication strategy '%s'. Possible values are [%s]",
rawAuthenticationStrategy, StringUtils.join(ReferralStrategy.values(), ", ")));
throw new ProviderCreationException(String.format("Unrecognized referral strategy '%s'. Possible values are [%s]",
rawReferralStrategy, StringUtils.join(ReferralStrategy.values(), ", ")));
}
context.setReferral(referralStrategy.toString());