Chris Sampson created NIFI-14120:
------------------------------------
Summary: StandardOauth2AccessTokenProvider cannot be verified
(through the new UI) with enabling and disabling the controller service
Key: NIFI-14120
URL: https://issues.apache.org/jira/browse/NIFI-14120
Project: Apache NiFi
Issue Type: Bug
Affects Versions: 2.1.0
Reporter: Chris Sampson
The {{StandardOauth2AccessTokenProvider}} controller service cannot be verified
because:
# the instance variables are only initialised when the controller service is
enabled
# verification cannot be performed (through the new UI at least) when a
controller service is enabled
Attempting to verify the {{StandardOauth2AccessTokenProvider}} in the new UI
results in a failure to create a token due to the {{grantType}} field being
{{null}}. Enabling the controller service, then disabling it again allows for
verification to happen.
Ideally all verifiable components should not rely upon the component first
having been enabled (then disabled). Unsure on whether the old UI (NiFi 1.x)
allows for verification of non-enabled/started components - if so, that's
probably something that should be looked at as a general "new UI" bug.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)