[
https://issues.apache.org/jira/browse/NIFI-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15266357#comment-15266357
]
ASF GitHub Bot commented on NIFI-1560:
--------------------------------------
GitHub user devin-fisher opened a pull request:
https://github.com/apache/nifi/pull/402
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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/devin-fisher/nifi NIFI-1560
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/402.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #402
----
commit 931c7c32b56268d46b4ae4e0caf0e8920d28e83e
Author: Devin Fisher <[email protected]>
Date: 2016-05-02T10:26:13Z
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.
----
> 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)