[ 
https://issues.apache.org/jira/browse/NIFI-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15268591#comment-15268591
 ] 

ASF subversion and git services commented on NIFI-1560:
-------------------------------------------------------

Commit 9fdb315f4c03452252c1eabf32fca8866e75ea55 in nifi's branch refs/heads/0.x 
from [~dev.fisher]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=9fdb315 ]

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


> Error message in LdapProvider is malformed
> ------------------------------------------
>
>                 Key: NIFI-1560
>                 URL: https://issues.apache.org/jira/browse/NIFI-1560
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Devin Fisher
>            Priority: Trivial
>
> The error message for a bad ReferralStrategy uses the variable 
> rawAuthenticationStrategy instead of rawReferralStrategy. Looks like it is a 
> simple copy and paste issue.
>         final ReferralStrategy referralStrategy;
>         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(), ", ")));
>         }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to